开发者

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

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜