UINavigationController先pop再push
2016-05-05 14:33
549 查看
UINavigationController先pop再push
HXChatMsgViewController *chatMessage = [[HXChatMsgViewController alloc]initWithChatter:model.profile.userId isGroup:NO]; NSMutableArray *ViewCtr = [NSMutableArray arrayWithArray:self.navigationController.viewControllers]; NSLog(@"navigation viewControllers is %@", ViewCtr); int index = (int)[ViewCtr indexOfObject:self]; [ViewCtr removeObjectAtIndex:index]; [ViewCtr addObject:chatMessage]; NSLog(@"the viewCtl is %@", ViewCtr); [self.navigationController setViewControllers:ViewCtr animated:YES];
相关文章推荐
- iOS UIButton 自定义图片和文字位置详解
- UIProgressView/UISlider / UISwitch 简单使用
- [leetcode] 187. Repeated DNA Sequences 解题报告
- android rawquery和query的比较
- UItextfield详解 for ios
- 去除UITableView底部多余行及分割线
- 133 - The Dole Queue
- 如何修改Bluetooth link supervision timeout (基于CSR BC4/5)
- UI设计风格的变化
- GradleUserGuide中文版 21)Java插件 22)War插件
- 大数据技术可视化之Hue
- Hibernate利用Query接口进行HQL查询
- UIAlertController中TextField的用法
- UIBezierPath和CAShapeLayer画各种图形
- cf450B. Jzzhu and Sequences
- GradleUserGuide中文版 19)Plugins 20)插件规范 21)Java插件
- UI切图那点事儿
- hdu3434 Sequence Adjustment
- UiAutomator Android 的自动测试框架(UiAutomator 快速调试)
- UI界面基础如何用鼠标控制物体移动