Savage F. Morgan

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

07 2014 档案

摘要:在 实际开发中LayoutInflater这个类还是非常有用的,它的作用类似于findViewById()。不同点是LayoutInflater是用 来找res/layout/下的xml布局文件,并且实例化;而findViewById()是找xml布局文件下的具体widget控件(如 Button、... 阅读全文
posted @ 2014-07-24 16:02 罗斯摩根 阅读(13086) 评论(0) 推荐(1)

摘要:Creating "IOS Project" in xcode 5 causes the following when launching for iPad simulator. The application works for iPhones configuration. I have set ... 阅读全文
posted @ 2014-07-16 15:44 罗斯摩根 阅读(885) 评论(0) 推荐(0)

摘要://不考虑大小写比较字符串1NSString *astring01 = @"this is a String!"; NSString *astring02 = @"This is a String!"; BOOL result = [astring01 caseInsensitiveCo... 阅读全文
posted @ 2014-07-14 16:02 罗斯摩根 阅读(3296) 评论(0) 推荐(0)

摘要:How do I insert a space to a NSString.I need to add a space at index 5 into:NString * dir = @"abcdefghijklmno";To get this result:abcde fghijklmnowith... 阅读全文
posted @ 2014-07-14 14:39 罗斯摩根 阅读(222) 评论(0) 推荐(0)

摘要:// // NSString+NSStringForJava.m // NSStringCategory // // Created by Ryan Tang on 12-10-17. // Copyright (c) 2012年 E... 阅读全文
posted @ 2014-07-14 14:38 罗斯摩根 阅读(316) 评论(0) 推荐(0)

摘要:How to check if NSString begins with a certain characterHow do you check if an NSString begins with a certain character (the character *).The * is an ... 阅读全文
posted @ 2014-07-14 14:36 罗斯摩根 阅读(218) 评论(0) 推荐(0)

摘要:What would cause a tableview cell to remain highlighted after being touched? I click the cell and can see it stays highlighted as a detail view is pus... 阅读全文
posted @ 2014-07-09 08:59 罗斯摩根 阅读(226) 评论(0) 推荐(0)

摘要:本文选自StackOverflow(简称:SOF)精选问答汇总系列文章之一,本系列文章将为读者分享国外最优质的精彩问与答,供读者学习和了解国外最新技术。本文将为读者讲解UITableView如何设置单元格属性为不可选?问题:Mugunth怎样才能设置UITableView的单元格属性为不可选择。我不... 阅读全文
posted @ 2014-07-08 15:37 罗斯摩根 阅读(2294) 评论(0) 推荐(0)

摘要:Plain:Grouped:Cell的结构图:UITableViewCellStyleDefault:预设使用这种,若左侧ImageView没图的话,只有一行字(textLable.text)。UITableViewCellStyleValue1:左侧为textLable.text并且左对齐,右侧... 阅读全文
posted @ 2014-07-08 15:13 罗斯摩根 阅读(248) 评论(0) 推荐(0)

摘要:Differences Between Xcode Project Templates for iOS AppsWhen you create a new iOS app project in Xcode, you get to choose between several project temp... 阅读全文
posted @ 2014-07-08 08:53 罗斯摩根 阅读(998) 评论(0) 推荐(0)