摘要: http://blog.csdn.net/hu_songsong/article/details/12844965 阅读全文
posted @ 2014-11-25 17:31 dzldzl 阅读(392) 评论(0) 推荐(0)
摘要: 1. 字符串常量NSString *s = @"test";NSLog(@"s:%d",[s retainCount]); // -1或2147483647(即UINT_MAX ( Maximum value an `unsigned int'))因为"test"为字符串常量,系统不会收回,也不会对... 阅读全文
posted @ 2014-11-25 17:16 dzldzl 阅读(155) 评论(0) 推荐(0)
摘要: http://blog.csdn.net/lonelyroamer/article/details/7665112 阅读全文
posted @ 2014-11-25 16:38 dzldzl 阅读(114) 评论(0) 推荐(0)
摘要: 为了能让类的成员变量正确的被外接访问,我们需要设置set和get方法。[objc]view plaincopy@property(nonatomic,retain)NSString*test1;@property(nonatomic,copy)NSString*test2;成员变量的属性不同(ret... 阅读全文
posted @ 2014-11-25 14:48 dzldzl 阅读(332) 评论(0) 推荐(0)