What's the difference between 'weak' and 'assign' in delegate property declaration
这两者有什么区别:
1 | @property (nonatomic, weak) id <SubClassDelegate> delegate; |
而这:
1 | @property (nonatomic, assign) id <SubClassDelegate> delegate; |
我要为代理使用属性。
(P)The only difference between EDOCX1 pental 0 and EDOCX1 americano 1 is that if the object a EDOCX1 niplistical 0 property points to is deallocated,they the value of the EDOCX1 penographic 0 pointer will be set to EDOCX1 penographic 4,so that you never run the risk of accessing garbage.如果你使用了EDOCX1这个词,它不会发生,所以如果你和你尝试接触它,你会得到加巴格。(p)(P)For objective-C objects,if you're in an environment where you c an use EDOCX1 English,then you should use it.(p)