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