错误一:
编译会报错:ARC forbids Objective-C object in struct ARC模式下,不允许将OC对象定义在结构体中
修正: 定义语句前加 __unsafe_unretained
错误二:
修正:语句前加 __block
错误三:
运行警告:在后台非主线程中刷新UI:
This application is modifying the autolayout engine from a background thread, which can lead to engine corruption and weird crashes
修正:方法一:通过GCD,在主线程执行代码
dispatch_async(dispatch_get_main_queue(), ^{
。。。
});