【发布时间】:2014-10-09 08:12:44
【问题描述】:
我有一个标签视图控制器,它有一个像这样的按钮,当它被按下时会出现一个模式:
PostViewController *post = [[PostViewController alloc] init];
// [self.navigationController pushViewController:post animated:YES];
// Presentation
[self presentViewController:post animated:YES completion:nil];
当模式完成后,我想关闭它并像这样推送一个新的视图控制器:
ProfilesViewController *profile = [[ProfilesViewController alloc] init];
[self.navigationController pushViewController:profile animated:YES];
但我不能在 post vc 中将其作为模态。我该怎么做?
【问题讨论】:
-
为什么你需要在出现之前先呈现并关闭它?
标签: ios uiviewcontroller uinavigationcontroller uitabview