第一种
[self.navigationController pushViewController:subTableViewController animated:YES];
//描述:通过 NSNavigationBar 进行跳转 [self.navigationController popViewControllerAnimated:YES]; //描述:在子视图返回到上级视图
...
分类:
移动开发 时间:
2015-06-05 17:38:30
阅读次数:
171
在一次开发项目中遇到了播放视频,播放完视频回到列表,该列表在 NavigationController 里面, NavigationController 放在了 UItabBarController 里面,做旋转禁止的操作,试了好多方法,在 UIViewController 写禁止旋转的方法,在 navigaitonController 类别里面写,都没有很好地饿解决该旋转的方法,都没有解决该问题...
分类:
其他好文 时间:
2015-06-04 17:04:33
阅读次数:
122
UILabel *showLabel = [[UILabel alloc]init]; showLabel.backgroundColor = [UIColor redColor]; [self.navigationController.view insertSubview:showLabel .....
分类:
其他好文 时间:
2015-06-04 13:35:16
阅读次数:
104
自动调整scrollview的insets为0, 然后scrollview就不会向下偏移64pxself.automaticallyAdjustsScrollViewInsets = NO;导航栏透明: self.navigationController.navigationBar.alpha =....
分类:
移动开发 时间:
2015-06-01 16:11:37
阅读次数:
128
新建一个singleviewapp在视图窗口拖住一个NavigationController,默认的NavigationController是自动关联TableView的,如果不需要,可以把自动添加的TableView删除,新建一个ViewController关联NavigationController即可。(右键从Nav拖向view,选择rootview)常用属性介绍navig..
分类:
移动开发 时间:
2015-05-29 18:30:32
阅读次数:
201
在默认显示的标题中直接修改文件的大小和颜色[self.navigationController.navigationBar setTitleTextAttributes:@{NSFontAttributeName:[UIFont systemFontOfSize:19],NSForegroundCo...
分类:
其他好文 时间:
2015-05-28 15:36:20
阅读次数:
123
1,去除navigationbar 底部黑线 ——亲测可用 if ([self.navigationController.navigationBar respondsToSelector:@selector( setBackgroundImage:forBarMetrics:)]){ NSA...
分类:
其他好文 时间:
2015-05-26 18:12:22
阅读次数:
116
1、UINavigationBar 背景色修改- (void)viewWillAppear:(BOOL)animated{ UINavigationBar *bar = self.navigationController.navigationBar; //关键是这几句。。。。。 [bar se...
分类:
其他好文 时间:
2015-05-25 22:15:18
阅读次数:
101
iOS 回到rootViewController根控制器视图直接上代码- (void)backToRootViewController{
UIViewController* vc = [MainViewController instance].navigationController.visibleViewController;
if ([vc isEqual:[MainViewCo...
分类:
移动开发 时间:
2015-05-21 22:37:30
阅读次数:
356
self.navigationController.navigationBar.barTintColor=COLOR(233, 86, 68, 1); self.navigationController.navigationBar.translucent = YES; self.navigatio....
分类:
移动开发 时间:
2015-05-17 21:33:39
阅读次数:
159