一。自定义navigationbar- (void)initNavigationBar{ [self.navigationController setNavigationBarHidden:YES]; UINavigationBar *bar = [[UINavigationBar al...
分类:
移动开发 时间:
2014-10-17 15:15:30
阅读次数:
198
假设出现:nested push animation can result in corrupted navigation barFinishing up a navigation transition in an unexpected state. Navigation Bar subview t...
分类:
其他好文 时间:
2014-10-11 16:43:35
阅读次数:
170
- (void) goBack{/* Get the current array of View Controllers */NSArray *currentControllers = self.navigationController.viewControllers; /* Create a mu...
分类:
编程语言 时间:
2014-10-11 14:07:15
阅读次数:
115
第一种方法:
[UIApplication sharedApplication].statusBarStyle = UIStatusBarStyleBlackOpaque;
self.navigationController.navigationBar.tintColor = [UIColor blackColor];
if (is_ios_7_Later) {
...
分类:
移动开发 时间:
2014-10-10 18:52:15
阅读次数:
189
UIViewController *target = nil;for (UIViewController * controller in self.navigationController.viewControllers) { //遍历 if ([controller isKindOfClas...
分类:
其他好文 时间:
2014-10-08 18:15:15
阅读次数:
201
代码:-(void)touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event{ //切换方法1 //动画效果:左右滑动 //必须有导航器视图才能切换 [self.navigationController pushView...
分类:
其他好文 时间:
2014-09-30 14:54:19
阅读次数:
165
storyboard之间的切换有三种方法:[self presentViewController:viewControllerToPresentanimated:YES completion:nil];[self.navigationController pushViewController:vie...
分类:
移动开发 时间:
2014-09-29 11:08:47
阅读次数:
181
navigationBar导航条可以看做是self.navigationController导航控制器的一个属性,可以直接用点来表示self.navigationController.navigationBar,当然navigationBar自己还有很多属性,比如样式barStyle、背景backgroundColor、frame属性(可以获取宽高这些信息),还可以用setBackgroundImage方法设置背景图片,当然图片多了可以使用clipsToBounds剪裁。...
分类:
移动开发 时间:
2014-09-29 00:37:26
阅读次数:
321
//设置导航栏的风格 self.navigationController.navigationBar.barStyle = UIBarStyleDefault; //设置导航栏是否透明 NO不透明, YES 透明,默认为YES; //当导航栏的translucent属性设置为YES,则在当前视图.....
分类:
其他好文 时间:
2014-09-24 23:22:57
阅读次数:
207
自定义TabBarController例如:@interfacemainTabBarController:UITabBarController修改颜色:self.tabBar.tintColor=[UIColorredColor];(背景颜色修改为红色)在自己的NavigationController添加p_w_picpath.titleself.tabBarItem.p_w_picpath=[UIImagep_w_picpathNamed:@"icon_b.p..
分类:
其他好文 时间:
2014-09-23 11:35:24
阅读次数:
228