ナビゲーションバーの背景色を変更すると、デフォルトではステータスバーの時刻とかバッテリー残量表示の文字が見づらくなる。
背景色にあった文字色に変更する。
手順
info.plist に以下の行を追加
- View controller-based status bar appearance
- Boolean
- NO
コードでステータスバーのスタイルを変更。
// Appdelegate.swift UIApplication.sharedApplication().statusBarStyle = UIStatusBarStyle.BlackOpaque