Semantic Issue: Property's synthesized getter follows Cocoa naming convention for returning 'owned' objects

前端 未结 10 1227
伪装坚强ぢ
伪装坚强ぢ 2020-12-07 06:54

I\'m currently using the iOS 5 SDK trying to develop my app. I\'m trying to make an NSString a property, and then to synthesize it in the .m file (I have done this before wi

10条回答
  •  情深已故
    2020-12-07 07:30

    ARC does not allow to use "New...." in property name. but you can use "newTitle" by changing getter name.

    @property (nonatomic, strong, getter=theNewTitle) NSString *newTitle;
    

提交回复
热议问题