I am trying to change UIImagePickerController
statusBar colour to white and i succeed to set White StatusBar with below Code.
View controller-based status bar appearance = YES
-(UIViewController*)childViewControllerForStatusBarStyle {
return nil;
}
-(UIStatusBarStyle)preferredStatusBarStyle {
return UIStatusBarStyleLightContent;
}
ScreenShots
ISSUE
when i present UIImagePickerController
, the status bar is white (1st Image) than i select one of album, it will display all video list (2nd Image) & than i click on particular video, it will show video preview (3rd Image).
when i press "Cancel" button from Video Preview, it pop to all Video list (2nd Screen) (but the status bar becomes black)
how to set status bar white?
Thanks in Advance.
Implement extension of the UIImagePickerController
and add
-(UIStatusBarStyle)preferredStatusBarStyle {
return UIStatusBarStyleLightContent;
}
to the extension.