self.automaticallyAdjustsScrollViewInsets = NO;iOS7之后由于navigationBar.translucent默认是YES,坐标零点默认在(0,0)点当不透明的时候,零点坐标在(0,64);如果你想设置成透明的,而且还要零点从(0,64)开始,那就添...
分类:
其他好文 时间:
2016-01-27 10:34:19
阅读次数:
165
[self.navigationController.navigationBar setTitleTextAttributes: @{NSFontAttributeName:[UIFont systemFontOfSize:19], NSForegroundColorAttributeName...
分类:
其他好文 时间:
2016-01-26 20:16:25
阅读次数:
117
-(void)scrollViewDidScroll:(UIScrollView *)scrollView{ [self.navigationController.navigationBar setBackgroundImage:[self imageWithBgColor:[UIColor col...
分类:
移动开发 时间:
2016-01-25 11:33:14
阅读次数:
251
React-Native开发的App,所有组件ios&android共用,共享一份代码包括一些自定义的组件,如NavigationBar,TabBar,SegmentedControl,使用字体图标,具有一定的参考意义主要专注于布局,共享组件/代码,以及一些React自带的组件,如:ScrollView,TouchableOpacity,View,Text,ListView,..
分类:
移动开发 时间:
2016-01-23 18:40:05
阅读次数:
244
NavigationBar 底部默认有一条边线 假设项目中须要隐藏何以採用这个库https://github.com/samwize/UINavigationBar-Addition/
分类:
其他好文 时间:
2016-01-23 17:56:46
阅读次数:
111
1.常用属性viewControllers //所有在栈中的控制器topViewController //栈顶控制器navigationBar //导航栏 竖屏下默认44,横屏默认322.对navigationBar的标题进行字体颜色等设置NSDictionary *dic = @{ ...
分类:
其他好文 时间:
2016-01-22 22:13:25
阅读次数:
386
[imagePickerController.navigationBar setBackgroundImage:[UIImage imageNamed:@"account_bg"] forBarMetrics:UIBarMetricsDefault];
分类:
其他好文 时间:
2016-01-20 19:13:00
阅读次数:
107
self.navigationController.navigationBar.barTintColor = [UIColor blackColor];self.navigationController.navigationBar.tintColor = [UIColor whiteColor];[...
分类:
移动开发 时间:
2016-01-12 11:37:24
阅读次数:
138
http://www.jianshu.com/p/efb960fed457- (void)viewWillAppear:(BOOL)animated{ [super viewWillAppear:animated]; self.navigationController.navigatio...
分类:
其他好文 时间:
2016-01-07 08:52:50
阅读次数:
144
iOS项目,根据设计图,有时需要自定义UIView的UINavigationBar的背景。可以切出来一张1像素左右的背景图片,来充当UINavigationBar的背景。可以利用NavigationBar的- (void)setBackgroundImage:(UIImage *)backgroun...
分类:
其他好文 时间:
2016-01-05 18:49:01
阅读次数:
138