- #import <Availability.h>
- #undef weak_delegate
- #if __has_feature(objc_arc_weak)
- #define weak_delegate weak
- #else
- #define weak_delegate unsafe_unretained
- #endif
转载于:https://blog.51cto.com/derkin2jessie/1191070
转载于:https://blog.51cto.com/derkin2jessie/1191070