iPhone tabbar导航进入错误屏幕
在我的申请中iPhone tabbar导航进入错误屏幕,iphone,Iphone,在我的申请中 当应用程序。启动它的显示加载屏幕 加载屏幕后,有另一个包含4个按钮的屏幕 如果我在下一个屏幕后选择任何按钮(3个屏幕包含tabbar控制器) 所以现在我想弹出(或返回到第二个)屏幕,但由于第三个屏幕上的tabbar控制器,我无法返回到第二个屏幕上我现在面临的问题 当我选择communicator时,它将进入AMG主页。现在我想回到通信器 您必须使用presentModalViewController,借助它,您可以导航回第二个屏幕: homePageViewController
您必须使用presentModalViewController,借助它,您可以导航回第二个屏幕:
homePageViewController = [[HomePageViewController alloc] initWithNibName:@"HomePageViewController" bundle:nil];
[self presentModalViewController:homePageViewController animated:NO];
[homePageViewController release];
homePageViewController只是第二页的名称
或
如果要推送视图,必须使用以下代码
[self.navigationController popViewControllerAnimated:YES];
我不明白你的问题。请你重新措辞好吗?但这不是从那个角度出发的特别方式,我知道这一点,但只有在可能的情况下,我才想要流行音乐。谢谢你的支持你能给我看看代码你是如何推广你的观点的。。。所以,我可以帮你更多…[self.navigationController popViewControllerAnimated:是];这里的问题只是由于tabbarcontroller,我无法弹出,因为使用了tabbarcontroller。如果我选择communicator图标,我使用了以下图标:CommunicatorHome*objCommunicatorView=[[CommunicatorHome alloc]initWithNibName:@“CommunicatorHome”bundle:nil];[self.navigationController pushViewController:objCommunicatorView动画:是];[objCommunicatorView发布];然后我点击后退按钮,它进入主页面,如图1所示