开发者

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

开发者 https://www.devze.com 2023-02-18 19:05 出处:网络
Are @property(nonatomic)ivar and @property(no开发者_如何学Cnatomic,assign)ivar the same or different?As stated in the docs:

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

精彩评论

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