状态栏颜色

  1. //设置NavigationBar背景颜色
  2. [[UINavigationBar appearance] setBarTintColor:[UIColor redColor]];
  3. //@{}代表Dictionary
  4. [[UINavigationBar appearance] setTitleTextAttributes:@{
  5. NSForegroundColorAttributeName : [UIColor whiteColor]
  6. }];





让过去成就未来.
原文地址:https://www.cnblogs.com/mkr127/p/5498513.html