viewDidAppear:不是在主线程执行,在更新UI时需要在主线程更新
- (void)viewDidAppear:(BOOL)animated
{
dispatch_async(dispatch_get_main_queue(), ^{
//更新UI
}
}
viewDidAppear:不是在主线程执行,在更新UI时需要在主线程更新
- (void)viewDidAppear:(BOOL)animated
{
dispatch_async(dispatch_get_main_queue(), ^{
//更新UI
}
}