开发者

Is it possible to make an @property private?

开发者 https://www.devze.com 2023-01-03 12:57 出处:网络
Someone said that I could a开发者_开发问答dd an private keyword to @property(...) ... really?Objective-C only allows private, protected, and public modifiers on instance variables, although you can es

Someone said that I could a开发者_开发问答dd an private keyword to @property(...) ... really?


Objective-C only allows private, protected, and public modifiers on instance variables, although you can essentially make a property (or method) private by declaring it in the implementation (.m) file rather than the header (.h file).

0

精彩评论

暂无评论...
验证码 换一张
取 消