如何保证返回按钮点击后始终有反映?
修改 [self.navigationController popViewControllerAnimated:YES]; 为如下代码
if ([NSThread isMainThread]) {
NSLog(@"Yay!");
[self.navigationController popViewControllerAnimated:YES];
} else {
NSLog(@"Humph, switching to main");
dispatch_async(dispatch_get_main_queue(), ^{
[self.navigationController popViewControllerAnimated:YES];
});
}