Easy to change status bar text color in iOS 7


Change Status Bar text color in iOS 7


 Step 1 :- 

               Change View controller-based status bar appearance Setting in info.plist file.
        if you want to change text color add NO.

                                      UIViewControllerBasedStatusBarAppearance to NO

                         

        else set Yes

                                     UIViewControllerBasedStatusBarAppearance to YES



 Step 2 :-
                 Add bellow code based on your event. like : you want on  ViewDidLoad OR Any Event.

For white :
 [[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleLightContent];
  



For Black : 
[[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleDefault];

Popular posts from this blog

Cordova Plugin Firebase Cloud Messaging For Android

iOS Phonegap app share extension (images) with ionic

Print Hand Plugin With Cordova/PhoneGap For Android.