What does “@public” mean in Objective-C?
Posted
by Ty
on Stack Overflow
See other posts from Stack Overflow
or by Ty
Published on 2010-05-06T13:40:35Z
Indexed on
2010/05/06
14:08 UTC
Read the original article
Hit count: 117
iphone
|objective-c
After reading a question on @private I understand how that works. However, since all variables default to @protected and you cannot really access a variable without defining an accessor, what exactly does @public do? When would you use it?
© Stack Overflow or respective owner