Property follows Cocoa naming convention for returning ‘owned’ objects。
@property (strong, nonatomic) UILabel *newNameLabel;
You can slove this by:
@property (strong, nonatomic) UILabel *theNewNameLabel;
or
@property (strong, nonatomic, getter = theNewNameLabel) UILabel *newNameLabel;
Cocoa命名规范与Objective-C属性

4294

被折叠的 条评论
为什么被折叠?



