IOS9要求UI的变更都在主线程里,否则报错
This application is modifying the autolayout engine from a background thread, which can lead to engine corruption and weird crashes. This will cause an exception in a future release.
解决方法:
dispatch_async(dispatch_get_main_queue(), ^{
// 更UI
});
再加上
self.automaticallyAdjustsScrollViewInsets = NO;
|
|