iOS8.1(xcode 6.1) I used the below method to change the status bar text color.
[self setNeedsStatusBarAppearanceUpdate];
-(UIStatusBarStyle)preferredStatusBarStyle{
return UIStatusBarStyleLightContent; }
following the link preferredStatusBarStyle isn't called
But this is not working for me.Anyone knows how to change status bar color related to uinavigationcontroller.
UIViewControllerBasedStatusBarAppearanceto YES in your info.plist- (UIViewController *)childViewControllerForStatusBarStylein your navigationController. return your childVCpreferredStatusBarStyleor something need.code:
let me know if it don't work.