DDMenuController
2014-12-08 10:18
218 查看
[gesture velocityInView:self.view] 判断左滑右滑
[gesture translationInView:self.view] 取得滑动距离(有方向)
self.title = @"首页";设置各个页面的标题 然后用它的UINavigationController push下个页面 返回按钮也就默认了title
I have an tab bar application with navigation controllers on certain tabs. If I set a title in initWithNib, that title appears on both the navigation and on the tab.
Both the navigation controller and the tab bar item use that title.
Is it possible to have a different title on the navigation and the tab bar item? Or, more specifically, not to display the title on the navigation bar (I am using a graphic there and don't want the text displayed over my graphic).
Solved.
Setting self.title specifies the tab title, specifying self.navigationItem.title will override the self.title and set the navigation title. In my case, I set it to nil so no title would show in the navigation bar.
UINavigationController
[gesture translationInView:self.view] 取得滑动距离(有方向)
self.title = @"首页";设置各个页面的标题 然后用它的UINavigationController push下个页面 返回按钮也就默认了title
I have an tab bar application with navigation controllers on certain tabs. If I set a title in initWithNib, that title appears on both the navigation and on the tab.
Both the navigation controller and the tab bar item use that title.
Is it possible to have a different title on the navigation and the tab bar item? Or, more specifically, not to display the title on the navigation bar (I am using a graphic there and don't want the text displayed over my graphic).
Solved.
Setting self.title specifies the tab title, specifying self.navigationItem.title will override the self.title and set the navigation title. In my case, I set it to nil so no title would show in the navigation bar.
UINavigationController
相关文章推荐
- DDMenuController
- DDMenuController
- DDMenuController
- DDMenuController
- Present ViewController Modally
- 系统简单的UIImagePickerController
- openstack安装rabbitmq时查看rabbitmq插件出现failed to connect rabbitmq@controller
- 解决UINavigationController+UITabbar跳转页面隐藏tabbar的一种方法
- controller 使用的时候,ng-app 必须有名字
- Kubernetes Job Controller源码分析
- (收藏)在ASP.NET中实现Model-View-Controller模式(五)
- iOS摄像头和相册-UIImagePickerController-浅析
- angularjs $broadcast $emit $on 事件触发controller间的值传递
- ros之真实驱动diy6自由度机械臂(moveit中controller源码)
- Struts Controller
- springMVC3学习(五)--MultiActionController
- SpringMVC中的controller默认是单例的原因
- iOS_解决首页(RootViewController)卡死BUG
- 关于Spring的Controller及Struts的Action的多线程的注意
- springMVC学习笔记三(controller控制器)