My requirement for the app is to show status bar through out the app.On certain Viewcontroller I am calling Image picker. on click on buttonImage, When current viewcontroller disappears and camera appears, status bar gets hidden that actually shifts navigation bar slightly upwards. the status bar and navigation bar resumes after completion of image pickup.
How can I keep status bar unaffected?
Status bar gets hidden when picking up image imagepicker
391 Views Asked by Arpana Sakpal At
2
May not be correct way to do it but after trying many answers, I just cancelled the animation of push Viewcontroller. I did in this way
in
(void)imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary<NSString *,id> *)info{ [self dismissViewControllerAnimated:NO completion:nil];}
this just hides the status bar shifting