我试图改变导航栏的颜色标题和状态栏项目在1 1Password应用程序扩展。我找不到办法做这件事。
请给我下面的图片。

一定有办法做的,优步应用正在做。请找到下面的图片。

有人能建议我怎么做吗?
发布于 2015-06-19 10:10:50
在呈现1密码屏幕之前,将外观设置如下。
[[UINavigationBar appearance] setBarTintColor:nil];
[[UINavigationBar appearance] setTintColor:[UIColor blackColor]];
[[UIBarButtonItem appearance] setTintColor:[UIColor blackColor]];
[[UINavigationBar appearance] setTitleTextAttributes: @{NSForegroundColorAttributeName:[UIColor blackColor]}];在1通道的完成块中,将您的外观重置为应用程序的特定外观。
发布于 2015-06-19 08:56:58
更改navigationBar标题颜色:
self.navigationController.navigationBar.titleTextAttributes = @{NSForegroundColorAttributeName:[UIColor grayColor]};更改状态栏字体颜色:1.在Info.plist添加项: UIViewControllerBasedStatusBarAppearance NO

2.在viewController viewDidLoad中添加代码
提示:如果您需要更改所有viewController状态字体颜色,则应添加AppDelegate应用程序:didFinishLaunchingWithOptions:
[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleLightContent];https://stackoverflow.com/questions/30933476
复制相似问题