Search code examples
iphoneobjective-ciosxibstatusbar

How to get a black status bar on an iPhone app?


I want to use a black status bar for my iPhone app. I have selected black status bar on all of my .xibs but I still can't get it to be black. Is this an issue that anyone else has seen or knows how to remedy?


Solution

    1. Open the "info.plist" file .
    2. Add a new row.
    3. Select "Status bar style" as the key.
    4. Select "Opaque black style" as the value.

    EDIT: The comment by @codrut below to choose the value:
    If you go far to the right, there's a button that brings you a drop down with the possible options.