I need to change the color of status bar text in first view controller to white and in the second view controller it should change to black. Tried with View controller-based status bar appearance to NO and called
-(UIStatusBarStyle)preferredStatusBarStyle
{
return UIStatusBarStyleLightContent;
}
But it was not changing. Please suggest me.
Go to your Plist file and add this property with Bool YES.
Then use
-(UIStatusBarStyle)preferredStatusBarStyle
{
return UIStatusBarStyleLightContent;
}
Have a look into attached screenshot-