注意区别这两种设置的不同
self.automaticallyAdjustsScrollViewInsets = NO;
self.edgesForExtendedLayout = UIRectEdgeNone;
和单独设置
self.automaticallyAdjustsScrollViewInsets = NO;
导航栏设置
// 无效
self.navigationController.navigationBar.tintColor = [MyController colorWithHexString:@"fcb314"];
// 有效
self.navigationController.navigationBar.barTintColor = color_fcb314;
// 下面的用法
self.navigationItem.hidesBackButton = YES;
网友评论