我以前在一个controller中引用一个naviController总是要通过delegate来取得:
[[[[UIApplication sharedApplication] delegate ] naviController] pushViewController: printView animated:TRUE];
今天在源代码中发现有注释是这样的:
@property(nonatomic,readonly,retain) UINavigationController *navigationController; // If this view controller has been pushed onto a navigation controller, return it.
发现在控制器中就直接有这个对象属性了:
[self.navigationController pushViewController: printView animated:TRUE];
[self.navigationController presentModalViewController:self.worldCitiesListNavigationController animated:YES];
不知道的东西太多了。
分享到:
相关推荐
navigationController
TabBarController与NavigationController嵌套的例子: 知识点: ⁃ 使用程序的形式创建TabBarController和NavigationController ⁃ TabBarController和NavigationController的多层嵌套 ⁃ NavigationController...
一个简单的ios中navigationcontroller实现的简单例子 1.在电脑上运行时候要注意修改调试类型为模拟器 2.新版本的xcode请不要忘记调版本,此为4.0版本
这篇文章比较详细的讲到的NavigationController中的使用。
自定义的一个navigationcontroller内置了tabbar,方便手势返回时隐藏tabbar(无需hidden)
Swift2.x编写NavigationController动态缩放titleView
iOS中present出一个透明导航控制器NavigationController 的方法+毛玻璃效果
这是在Mac10.7上实现的TabBarController+NavigationController。 这个结构在实际运用中很重要。这里面的代码也很简单,很适合初学者的学习。
1、详细讲解了IOS 的导航控制器UINavigationController.
IOS应用源码——NavigationController.rar
NavigationController
2. 对NavigationController调用开启方法: [navi setEnableBackGesture:true]; PS: 这种右滑手势,目前网上有另外一种解决方案,采用Push前截屏保存页面快照的方式实现,缺点是如果前一个页面有动态效果则不能...
苹果一直都在人机交互中尽力做到极致,在iOS7中,新增加了一个小小的功能,也就是这个api:self.navigationController.interactivePopGestureRecognizer.enabled = YES; 这个api功能就是在NavigationController堆栈...
当成一个帮助文档来看吧,包含一些基础的添加,实用的例子,具体可以察看我上传的实例,搜索关键字:“ios中navigationcontroller实现实例”,就可以看到了。
一个TabBarController+UINavigation的demo,进入到除跟视图控制器以外的子视图控制器时,会自动隐藏tabbar。
效果参考 App:腾讯新闻、百度音乐等等 GitHub:https://github.com/LeoiOS/LCNavigationController
快速实现navigationController全屏滑动返回的分类, 使用简单
CoreNavVC, 最健壮的NavigationController )/)/Objective-C排行榜,Swfit排行榜提示:在一切开始前,请自定义你的导航控制器比如AppNavVC,继承自CoreNavVC [self navBarA
iOS NavigationController过渡效果
主要介绍了iOS swift 总结NavigationController出现问题及解决方法的相关资料,需要的朋友可以参考下