Note: in iOS 8, Status bar hides itself automatically in landscape and comes back in portrait(iPhone only).
To show videos in my app, I am using XCDYouTubeKit, which is a light wrapper on MPMoviePlayerViewController.
I had to set "View controller-based status bar appearance" in info.plist file to "NO" in my app due to some functionality. The app works fine till you don't use XCDYouTubeKit(MPMoviePlayerViewController). After using XCDYouTubeKit the app loses the functionality specified in "Note" above means status bar starts showing up in landscape also.
You can download the demo project here.
https://www.dropbox.com/s/yp5pkvf9evsl8wb/XCDYouTubeKit%20Demo.zip?dl=0
To experience this thing you need to follow the following steps in XCDYouTubeKit demo:
- set "View controller-based status bar appearance" in info.plist file to "NO".
- Open the app in iOS 8 and go to "Full Screen Player".
- Change the Orientation to portrait to landscape or vice-versa. You will observe that the status bar hides in landscape but not in portrait.
- Now tap on "Play Full Screen" button(Portrait mode) and let the view controller come up.
- Dismiss the video by pressing "done" button( irrespective on orientation ).
- Change the Orientation to portrait to landscape or vice-versa. You will observe that the status bar stays there all the time irrespective of the device orientation.
Please help!!!