摘要: nil Nil 阅读全文
posted @ 2017-02-22 17:36 三年幻想郷 阅读(132) 评论(0) 推荐(0) 编辑
摘要: MRC条件下 - (void)setDog:(Dog *)dog { if (_dog != dog) { [_dog release]; _dog = nil; _dog = [dog retain]; } } - (void)setName:(NSString *)newName { if(_n 阅读全文
posted @ 2017-02-22 15:34 三年幻想郷 阅读(520) 评论(0) 推荐(0) 编辑
摘要: Change id to instancetype in appropriate places Change enum to NS_ENUM or NS_OPTIONS The NS_ENUM macro helps define both the name and type of the enum 阅读全文
posted @ 2017-02-22 11:11 三年幻想郷 阅读(101) 评论(0) 推荐(0) 编辑