非ARC下使用__weak

typeof(self) __weak weakSelf = self;

Cannot create __weak reference in file using manual reference counting

解决:build setting -> Apple LLVM7.1 - Language - Objective C -> Weak References in Manual Retain Release YES

你可能感兴趣的:(非ARC下使用__weak)