Can't get a translucent status bar in iOS

后端 未结 4 999
日久生厌
日久生厌 2021-01-13 12:50

I\'m trying to get the standard black translucent status bar in my iOS (iOS 6) app programmatically with no luck. I tried adding the key/value in my info.plist, as well as a

4条回答
  •  既然无缘
    2021-01-13 13:09

    you have got the code right. place it in your app delegate in application did finish launching with an option and it should do the trick. i just built a simple view application and just added your code to the app delegate and added an image to the view to test it and it works. you can see it in screen shot below.

    enter image description here

    good luck.

提交回复
热议问题