IOS 初学笔记 之 页面之间跳转方式
2018-03-22 08:53
211 查看
//跳转指定页面- (IBAction)zhiding:(id)sender { [self.navigationController popToViewController:self.navigationController.childViewControllers[1] animated:YES];}//跳转到根控制器- (IBAction)gen:(id)sender { [self.navigationController popToRootViewControllerAnimated:YES];}//返回上一级- (IBAction)shangyiji:(id)sender { [self.navigationController popViewControllerAnimated:YES];}
例子
点击跳转事件-(void)aclick:(UIButton *)btn{ DdiscountssViewController *towVC=[[DdiscountssViewControlleralloc] init]; towVC.hidesBottomBarWhenPushed=YES; [self.navigationControllerpushViewController:towVCanimated:YES];}
例子
点击跳转事件-(void)aclick:(UIButton *)btn{ DdiscountssViewController *towVC=[[DdiscountssViewControlleralloc] init]; towVC.hidesBottomBarWhenPushed=YES; [self.navigationControllerpushViewController:towVCanimated:YES];}
相关文章推荐
- IOS开发笔记(2)页面之间传递数据几种方式比较
- 【代码笔记】iOS-页面之间的跳转效果
- 【代码笔记】iOS-页面之间的跳转效果
- iOS开发之如何通过路由方式进行页面间的跳转
- iOS客户端学习-页面跳转几种方式
- iOS页面间跳转方式总结
- IOS 页面跳转方式总结
- iOS项目开发实战——使用三种方式实现页面跳转与参数传递(二)
- 微信小程序详解——页面之间的跳转方式【路由】和参数传递
- ios学习笔记:storyboard页面跳转
- IOS 页面之间的跳转以及传值
- (ios开发学习笔记三)两个窗体之间跳转,实现多窗体
- iOS页面之间跳转隐藏UITabbar
- iOS 页面之间的跳转
- ios开发学习笔记 两个窗体之间跳转
- java程序中前后台交互的两种实现方式以及页面之间的跳转
- iOS开发页面之间的几种传值方式
- iOS页面间跳转的方式
- PHP初学之页面跳转方式
- 【iOS开发-79】利用Modal方式实现控制器之间的跳转