Add below code to your view controller..
- (BOOL)prefersStatusBarHidden {
return NO;
}
Note :
- If you change the return value for this method, call the
setNeedsStatusBarAppearanceUpdate
method. - For childViewController, To specify that a child view controller
should control preferred status bar hidden/unhidden state, implement
thechildViewControllerForStatusBarHidden
method.