【发布时间】:2014-12-07 00:41:21
【问题描述】:
我有一个模态视图控制器,如下所示:
[self presentViewController:photo animated:YES completion:nil];
因此照片是一个模态视图控制器,但是当它完成后,我想像这样推送到导航视图控制器:
[self dismissViewControllerAnimated:NO completion:^{
// UINavigationController *nav = [[UINavigationController alloc] init];
//nav.delegate = self;
ProfilesViewController *profile = [[ProfilesViewController alloc] init];
[_nav pushViewController:profile animated:YES];
}];
nav 是照片视图控制器中的一个属性,它也具有委托。仍然无法正常工作,所以我错过了什么?
【问题讨论】:
-
等等!不要忘记 transitionFromViewController:toViewController:duration:options:animations:completion: 这可能是你所追求的。
标签: ios ios7 uiviewcontroller uinavigationcontroller