Objective-C modifiers question
In objective C, in my header files, I often do this:
@private
NSString *h1;
@private
NSString *str;
But would that be the same as simply doing:
@private
NSString *h1;
开发者_开发百科NSString *str;
Yes they are functionally equivalent. The first example is just a waste of space.
Yes, they are the same. Per the documentation: The Objective-C Programming Language
精彩评论