setStatusBarStyle:animated: deprecated
问题 I'm currently developing an app (in Swift 3) on Xcode 8 beta , for iOS 10 . What I want to achieve is to change status bar style within a view controller at run time, for changing the theme from daytime theme to night theme. I've found out that the method I used to use when I was developing another app in the past was deprecated, as shown here on the API reference. However, preferredStatusBarStyle won't work here since I would like to change it within a single view controller. Can anybody