How to change status bar style during launch on iOS 7

前端 未结 6 1364
慢半拍i
慢半拍i 2020-12-23 13:13

When I launch my app, it shows the launch image and a black status bar. How can I change it so the status bar is light during launch? I have set the status bar appearance to

6条回答
  •  無奈伤痛
    2020-12-23 14:17

    Works on iOS7 and iOS8

    You need to set in your Info.plist file property for key Status bar style:

    1. Set Opaque black style or Transparent black style (alpha of 0.5) for White status bar
    2. Set Gray style (default) to set Black status bar color.

    It looks like you set Background style for Status Bar and XCode understand which color of status bar need to choose. Dark background - white status bar, light background - black status bar

提交回复
热议问题