天天看點

iOS--錯誤集錦--Property follows Cocoa naming convention for returning ‘owned‘ objects

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;
           

繼續閱讀