我有 2 个视图控制器。FirstViewController
和SecondViewController
。二是通过presentViewController...
两者都在收听通知:
第一视图控制器.m
- (void)facebookUpdated:(NSNotification *)notification {
if (![[FacebookHelper sharedInstance] isLoggedIn]) {
[self.addReminderTableView reloadSections:[NSIndexSet indexSetWithIndexesInRange:NSMakeRange(1, 2)] withRowAnimation:UITableViewRowAnimationFade];
}
}
第二视图控制器.m
- (void)facebookUpdated:(NSNotification *)notification {
if (![[FacebookHelper sharedInstance] isLoggedIn]) {
// The user decided not to log in
[self dismissViewControllerAnimated:YES completion:^{
}];
}
}
被SecondViewController
解雇并FirstViewController
重新加载表。但是我收到了我不喜欢的警告
警告:在演示或关闭过程中尝试从视图控制器中关闭!
而且我真的不确定我为什么会得到它。我确信没有其他解雇正在进行中。我不确定正在进行的演示文稿是什么意思?