开发者

Are @property(nonatomic)ivar @property(nonatomic,assign)ivar the same or different?

Are @property(nonatomic)ivar and @property(no开发者_如何学Cnatomic,assign)ivar the same or different?


As stated in the docs:

assign - Specifies that the setter uses simple assignment. This attribute is the default.

So no, as far as I know they are the same.


Objective-C 101 (retain vs assign) NSString

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜