摘要:
声明了@property(或者setter、getter),才能使用点语法@property (nonatomic, assign) int age;//等同于声明setter、getter方法@synthesize age; //等同于实现setter、getter方法(6.0以后写了@property会自动生成@synthesize) /————————————————————————————————/ @property的参数/————————————————————————————————/(assign , retain , copy , readonly , readwrite.. 阅读全文
posted @ 2014-03-19 13:30
进击的黑白熊
阅读(138)
评论(0)
推荐(0)
摘要:
/————————————————————————————/Creating and Initializing Strings创建和初始化字符串/————————————————————————————/NSString常用用法http://www.cnblogs.com/blackwhitex/p/3611070.html创建字符串NSString *str = [NSString alloc] initWithFormat:];–initWithString:(NSString *) 从NSString中创建–initWithCString:(const c... 阅读全文
posted @ 2014-03-19 13:11
进击的黑白熊
阅读(335)
评论(0)
推荐(0)
摘要:
/————————————————————————————/【NSString】常用用法/————————————————————————————/NSString的创建、从File中、从URL中 http://www.cnblogs.com/blackwhitex/p/3611125.htmlint a = str1.intValue;//字符串转int类型,同样也可以charValue、floatValue、doubleValue、boolValue 等int len = str1.length;//取字符串长度if([str1 isEqualToString:str2] ) //判断字符 阅读全文
posted @ 2014-03-19 12:40
进击的黑白熊
阅读(816)
评论(0)
推荐(0)

浙公网安备 33010602011771号