chrisjp / CJPAdController

A singleton class providing a simple way to add iAd and AdMob ads to a view controller. Choose one as the default, fall back to the other.
http://chrisphillips.co.uk
MIT License
202 stars 58 forks source link

Status Bar Style default #30

Open tigpt opened 8 years ago

tigpt commented 8 years ago

Hello,

I'm trying to use CJPAdController but when i add it, the status bar is always set to default and it looks bad on my black navigation bar

I want to set it to light content but i can't. it looks like this overwrites it

self.window.rootViewController = [CJPAdController sharedInstance];

Does anyone had the same problem? how to walk around it? Thanks a lot

tigpt commented 8 years ago

I did edited CJPAdController.m (UIStatusBarStyle)preferredStatusBarStyle function to the one bellow, its not a fix for this issue, it is just a way to force it for this app, but only works if the status bar is always the same style.

// Go to CJPAdController.m and change status bar Style