One of the changes in iOS 7 API's is hiding the status bar. Prior to iOS 7 we could hide status bar by using :
[[UIApplication sharedApplication] setStatusBarHidden:YES];
But now there is a slight change. We need to add a row "View controller-based status bar appearance" in our app's info.plist file and set it to NO and then use the above code. We can also add animation while hiding status bar :
[[UIApplication sharedApplication] setStatusBarHidden:YES withAnimation:UIStatusBarAnimationFade];
0 Comment(s)