BUG

2016-09-08  本文已影响7人  请叫我攻城狮

Cannot create __weak reference in file using man 

如果,当你升级到xcode 7.3 后 发现遇到如下问题: cannot create __weak reference in file using manual reference counting __cpt_weak UIPinchGestureRecognizer *pinchGestureRecognizer;

那么,可以设置build setting -> Apple LLVM7.1 - Language - Objective C -> Weak References in Manual Retain Release YES或者用unsafe_unretained代替weak

上一篇下一篇

猜你喜欢

热点阅读