My view controller hierarchy is SWRevealViewController
-> UINavigationViewController
-> MyController1
. MyController1
presents MyController2
using self.present
. MyController2
is not within UINavigationViewController
and presentation is modal (device is iPhone). In viewWillAppear
of MyController2
I call self.setNeedsStatusBarAppearanceUpdate()
, but preferredStatusBarStyle
is never called by the system and status bar appearance remains same (as it was for MyViewController1
). Am I missing something here?
EDIT
info.plist
has View controller-based status bar appearance set to YES