是@property(nonatomic)ivar @property(nonatomic,assign)ivar相同还是不同? [英] Are @property(nonatomic)ivar @property(nonatomic,assign)ivar the same or different?
本文介绍了是@property(nonatomic)ivar @property(nonatomic,assign)ivar相同还是不同?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是 @property(nonatomic)ivar
和 @property(nonatomic,assign)ivar
相同还是不同?
解决方案
如 docs :
assign -
指定setter使用简单赋值。 此属性是默认属性。
所以不,就我所知他们是一样的。 / p>
Are @property(nonatomic)ivar
and @property(nonatomic,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.
这篇关于是@property(nonatomic)ivar @property(nonatomic,assign)ivar相同还是不同?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文