我有一個介紹,像這樣一個模式視圖控制器:獲取一個UIViewController推到另一個控制器
[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:**這可能是你在做什麼之後。 – Fattie 2014-10-12 12:02:39