2015-10-20 13 views
6

以下のコードはSFSafariViewControllerの色合いを変更することを理解していますが、どのようにしてnavbarとtabBarの背景色を変更しますか?SFSafariViewControllerの背景色を変更するには?

SFSafariViewController *safariViewController = [[SFSafariViewController alloc] initWithURL:webpageUrl]; 
[safariViewController.view setTintColor:[UIColor blueColor]]; 

明確にするために、半透明の白色を暗緑色に変更したいですか?

enter image description here

この問題に関する任意の助けいただければ幸いです。

ありがとうございます!

答えて

4

SFSafariViewController下に提出され、IOSの10 SDKのように、それぞれのバー項目、バー自体の色合いの色を制御するpreferredBarTintColorpreferredControlTintColor特性を有します。

+1

透光性をオフにする方法はありますか? – Happiehappie

+1

@Happiehappie私はそれが可能だとは思わない。アップルで強化要求を開きます。 –