设置navigationbar 颜色,主题

设置navigationbar 颜色,主题_第1张图片
Paste_Image.png
[[UINavigationBar appearance] setBarTintColor:COLOR_RGB(0, 159, 239)];
[[UINavigationBar appearance] setTitleTextAttributes:@{NSForegroundColorAttributeName:[UIColor whiteColor]}];
[[UINavigationBar appearance] setBackIndicatorImage:[UIImage imageNamed:@"btn-back"]];
[[UINavigationBar appearance] setBackIndicatorTransitionMaskImage:[UIImage imageNamed:@"btn-back"]];
[[UIBarButtonItem appearance] setBackButtonTitlePositionAdjustment:UIOffsetMake(0, -100) forBarMetrics:UIBarMetricsDefault];

你可能感兴趣的:(设置navigationbar 颜色,主题)