UI: 操作导航控制器的视图控制器数组
2014-10-11 11:04
253 查看
- (void) goBack{ /* Get the current array of View Controllers */ NSArray *currentControllers = self.navigationController.viewControllers; /* Create a mutable array out of this array */ NSMutableArray *newControllers = [NSMutableArray arrayWithArray:currentControllers]; /* Remove the last object from the array */ [newControllers removeLastObject]; /* Assign this array to the Navigation Controller with animation */ [self.navigationController setViewControllers:newControllers animated:YES]; }
相关文章推荐
- 手动操作导航控制器的子视图控制器的数组
- 手动操作导航控制器的子视图控制器的数组
- 手动操作导航控制器的子视图控制器的数组
- iOS Dev 深入浅出 导航控制器(二)with表视图相关操作
- UI 07 _ 导航视图控制器 与 属性传值
- 黑马程序员--UI学习之用代码向你展示视图控制器(UIViewController)和导航控制器(UINavigationController)配合单例的使用
- UI_导航视图控制器
- Snail—UI学习之导航视图控制器UINavigationController(系统)
- ios学习记录 day31 UI 9 多视图切换 导航控制器
- 7 高级UI控件-导航控制器与表视图
- UI 07 _ 导航视图控制器 与 属性传值
- ipad UISplitViewController 导航视图控制器标题设置
- UI_导航视图控制器
- Snail—UI学习之导航视图控制器UINavigationController(系统)
- UI 设置代理 实现视图控制器间的传值操作
- iOS培训章节——UI多视图之导航控制器的用法
- [IOS]添加NavigationItem到导航视图控制器
- IOS之导航控制器与表视图
- Iphone开发(十三)用导航控制器实现视图的分层切换(UINavigationController)
- 导航控制器实现视图的分层切换