标签:
AddShopViewController *controller = [[AddShopViewController alloc] init];controller.view.backgroundColor = [UIColor whiteColor];// 设置背景色为白色,消除残影[self.navigationController pushViewController:controller animated:YES];
NSLog(@"ViewControllers before pushing: %@", self.navigationController.viewControllers);
UINavigationController *navController = [[UINavigationController alloc]initWithRootViewController:self];[self presentViewController:navController animated:YES completion:nil];
MyViewController *myViewController = [MyViewController alloc] init];UINavigationController *navController = [UINavigationController alloc] initWithRootViewController:myViewController];// Presuming a view controller is asking for the modal transition in the first place.[self presentViewController:navController animated:YES completion:nil];
UINavigation,UiView,ModalView Controller之间的关系
标签:
原文地址:http://www.cnblogs.com/buro79xxd/p/4298958.html