TimOliver / TOWebViewController

A view controller class for iOS that allows users to view web pages directly within an app.
http://www.timoliver.com.au/2014/07/27/towebviewcontroller-an-open-source-web-viewer-for-ios/
Other
1.48k stars 211 forks source link

Setting statusbar style #116

Closed rajdhakate closed 7 years ago

rajdhakate commented 7 years ago

- (UIStatusBarStyle)preferredStatusBarStyle never called. How can we set statusbar style to lightContent?

TimOliver commented 7 years ago

The status bar color is dictated by the barStyle property of the UINavigationBar of the UINavigationController the view controller is added to. If you set the bar style to black, the status bar should turn to its white tint.

If you're not using a UINavigationController and are using a custom view for the top, it might be easiest to subclass TOWebViewController and then override the method in your subclass.

Hope that helped!