[英]Change 1Password App extension navigation bar title color
我正在嘗試更改1Password App擴展中導航欄標題和狀態欄項目的顏色。 我找不到解決辦法。
請下圖。
必須有一種方法可以做到,Uber應用程序正在這樣做。 請找到下面的圖片。
有人可以建議我一種方法嗎?
更改navigationBar標題顏色:
self.navigationController.navigationBar.titleTextAttributes = @{NSForegroundColorAttributeName:[UIColor grayColor]};
更改狀態欄字體顏色:1.在Info.plist中添加項目:UIViewControllerBasedStatusBarAppearance否
2.在[viewController viewDidLoad]中添加代碼
提示:如果需要更改所有viewController狀態字體顏色,則應添加[AppDelegate應用程序:didFinishLaunchingWithOptions:]
[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleLightContent];
在出現1Password屏幕之前,請如下設置外觀。
[[UINavigationBar appearance] setBarTintColor:nil];
[[UINavigationBar appearance] setTintColor:[UIColor blackColor]];
[[UIBarButtonItem appearance] setTintColor:[UIColor blackColor]];
[[UINavigationBar appearance] setTitleTextAttributes: @{NSForegroundColorAttributeName:[UIColor blackColor]}];
在1Password的完成塊中,將您的外觀重置為應用程序的特定外觀。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.