【发布时间】:2013-07-16 18:02:13
【问题描述】:
我有 2 个视图控制器。 FirstViewController 和 SecondViewController。第二种通过presentViewController...呈现
两者都在收听通知:
FirstViewController.m
- (void)facebookUpdated:(NSNotification *)notification {
if (![[FacebookHelper sharedInstance] isLoggedIn]) {
[self.addReminderTableView reloadSections:[NSIndexSet indexSetWithIndexesInRange:NSMakeRange(1, 2)] withRowAnimation:UITableViewRowAnimationFade];
}
}
SecondViewController.m
- (void)facebookUpdated:(NSNotification *)notification {
if (![[FacebookHelper sharedInstance] isLoggedIn]) {
// The user decided not to log in
[self dismissViewControllerAnimated:YES completion:^{
}];
}
}
SecondViewController 被解除,FirstViewController 中的表被重新加载。但是我收到了这个我不喜欢的警告
警告:尝试从视图控制器中关闭 当演示或解雇是 进行中!
而且我真的不确定我为什么会得到它。我确信没有其他解雇正在进行中。我不确定正在进行的演示是什么意思?
【问题讨论】:
标签: objective-c cocoa-touch uiviewcontroller nsnotification