iOS--错误集锦--Property follows Cocoa naming convention for returning ‘owned‘ objects

奚正谊
2023-12-01

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;
 类似资料: