可能性の重複:
using ARC, lifetime qualifier assign and unsafe_unretained弱い参照プロパティに代わってunsafe_unretained修飾子を割り当てるのはなぜですか?
2の違いは何ですか?
@property(unsafe_unretained) MyClass *delegate;
@property(assign) MyClass *delegate;
どちらも非ゼロ化弱参照です。だから、assign
の代わりにunsafe_unretained
と読むのが長くて難しくなる理由がありますか?
注:ゼロ調整の参考資料であるweak
があります。しかし、iOS> = 5のみです。
答えはこちらhttp://stackoverflow.com/questions/8397511/using-arc-lifetime-qualifier-assign-and-unsafe-unretained –