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
精彩评论