我是iOS的新手,我正在创建一个类似于twitter的应用程序,我正在使用Storyboard。在这个应用程序中我有一个View控制器类,它显示用户详细信息和他们的订阅源,如收到的消息,点击消息用户可以在另一个视图控制器上看到消息发件人配置文件详细信息我使用导航控制器push segue从用户配置文件转到消息发件人资料。
我想在点击消息
上在第二个View Controller上打开更多邮件发件人配置文件喜欢A - > B - > C - > D - > E等等......,就像Facebook或Twitter一样,以便导航控制器中的返回顺序相同。
答案 0 :(得分:0)
导航控制器作为堆栈工作,它会自动调整为按您需要的方式工作。
添加如下导航控制器:
UIViewController *bbp=[[UIViewController alloc]initWithNibName:@"UIViewController" bundle:nil];
UINavigationController *passcodeNavigationController = [[UINavigationController alloc] initWithRootViewController:bbp];
[self.navigationController pushViewController:passcodeNavigationController animated:YES];
[passcodeNavigationController release];
通过Apple文档获得一个清晰的想法:https://developer.apple.com/library/ios/documentation/uikit/reference/UINavigationController_Class/Reference/Reference.html