2:设置statusBar和navigationbar为一体
<a target=_blank href="http://shop111849857.taobao.com/shop/view_shop.htm?spm=a1z0e.1.10010.4.Dadm77">[nav.navigationBar setBackgroundImage:[UIImage imageNamed:@"bg_navbar.png"] forBarPosition:UIBarPositionTopAttached barMetrics:UIBarMetricsDefault];</a>
3:tabBarItem被选中没效果,需要调用sdk7中的方法:
<a target=_blank href="http://shop111849857.taobao.com/shop/view_shop.htm?spm=a1z0e.1.10010.4.Dadm77">//兼容ios7以前
[viewController.tabBarItem setFinishedSelectedImage:actionMenu.selectedIcon withFinishedUnselectedImage:actionMenu.icon];
//ios7的方法
viewController.tabBarItem.selectedImage = actionMenu.selectedIcon;</a>
[self setNeedsStatusBarAppearanceUpdate]
5:navigationbar上面的BarButtonItem字看不见问题,backBarItem箭头没有,则需要
<a target=_blank href="http://shop111849857.taobao.com/shop/view_shop.htm?spm=a1z0e.1.10010.4.Dadm77">//ios7设置BarButtonItem字体颜色,则会显示出来,不包括返回箭头
[[UIBarButtonItem appearance] setBackButtonTitlePositionAdjustment:UIOffsetMake(0, 0) forBarMetrics:UIBarMetricsDefault];
//设置BarButtonItem颜色,包括返回箭头
[[UINavigationBar appearance] setTintColor:[UIColor whiteColor]];</a>
6:取消ios7自带手势,比如navigationcontroller的右滑返回
<a target=_blank href="http://shop111849857.taobao.com/shop/view_shop.htm?spm=a1z0e.1.10010.4.Dadm77">self.navigationController.interactivePopGestureRecognizer.enabled = NO ;</a>