show statusbar in camera imagePicker
I am woking on imagePicker where i need to show camera with some overlay view.But it's hiding status bar please tell me how i can show it here is a code
imagePickerController = [[UIImagePickerController alloc] init];
imagePickerController.delegate = self;
imagePickerController.sourceType = sourceType;
imagePickerController.showsCameraControls = NO;
imagePickerController.cameraViewTransform = CGAffineTransformScale(imagePickerControlle开发者_StackOverflow社区r.cameraViewTransform, 0.5f, 0.5f);
imagePickerController.cameraOverlayView = self.tabBarController.view;
self.navigationController.navigationBarHidden = YES;
imagePickerController.navigationBar.barStyle = UIBarStyleBlack;
[self presentModalViewController:imagePickerController animated:YES];
try this
[[UIApplication sharedApplication] setStatusBarHidden:NO animated:NO];
[[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleBlackTranslucent animated:YES];
精彩评论