setStatusBarHidden is deprecated in iOS 9.0

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
    the childViewControllerForStatusBarHidden method.

Leave a Comment