2015-06-19 85 views
1

我试图更改1Password应用程序扩展中的导航栏标题和状态栏项目的颜色。我无法找到一种方法来做到这一点。更改1Password应用程序扩展导航栏标题颜色

请在下面的图片。 enter image description here

必须有办法做到这一点,优步应用程序正在这样做。请找到下面的图片。 enter image description here

有人可以请建议我一种方法来做到这一点。

回答

0

之前呈现的1Password画面中设定的外观如下。

[[UINavigationBar appearance] setBarTintColor:nil]; 
[[UINavigationBar appearance] setTintColor:[UIColor blackColor]]; 
[[UIBarButtonItem appearance] setTintColor:[UIColor blackColor]]; 
[[UINavigationBar appearance] setTitleTextAttributes: @{NSForegroundColorAttributeName:[UIColor blackColor]}]; 

在1Password的完成块中,将外观重置为您的应用程序的特定外观。

0

变化的导航栏标题颜色:

self.navigationController.navigationBar.titleTextAttributes = @{NSForegroundColorAttributeName:[UIColor grayColor]}; 

变化状态栏字体颜色: 1.in Info.plist中添加项目:UIViewControllerBasedStatusBarAppearance NO enter image description here

2.加在[的viewController viewDidLoad中的代码]

提示:如果您需要更改所有viewController状态字体颜色,您应该添加[AppDeleg吃的application:didFinishLaunchingWithOptions:]

[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleLightContent]; 
+0

我们无法访问1Password的导航栏来更改其titleTextAttributes,因为它是应用程序扩展。 – pavan309

+0

@pavan 1Password应用程序扩展标题文本属性继承自您自己的应用程序配色方案,您无需访问1Passwords应用程序扩展 – JSA986

+0

在8.3中,我们在1Password的第二个屏幕中看到导航栏很少出现问题。任何我如何找到它的修复。谢谢你们的帮助。 – pavan309