首页 > 编程语言 > 详细

UI: 操作导航控制器的视图控制器数组

时间:2014-10-11 12:58:26      阅读:122      评论:0      收藏:0      [点我收藏+]
- (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]; }

 

UI: 操作导航控制器的视图控制器数组

原文:http://www.cnblogs.com/safiri/p/4018574.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!