가능한 중복 :
using ARC, lifetime qualifier assign and unsafe_unretained약한 참조 속성에 대해 unsafe_unretained 한정자보다 할당을 선호해야하는 이유는 무엇입니까?
둘 사이의 차이점은 무엇입니까?
@property(unsafe_unretained) MyClass *delegate;
@property(assign) MyClass *delegate;
둘 다 0이 아닌 약한 참조입니다. 맞습니까? 그렇다면 assign
대신에 unsafe_unretained
을 더 길고 딱딱하게 써야하는 이유가 있습니까?
참고 : 제로 잉 참조 인 weak
이 있음을 알고 있습니다. 하지만 그것은 iOS> = 5뿐입니다.
답변 찾기 http://stackoverflow.com/questions/8397511/using-arc-lifetime-qualifier-assign-and-unsafe-unretained –