[英]show statusbar in camera imagePicker
我在imagePicker上醒来,我需要用一些叠加视图显示相机。但是它隐藏了状态栏,请告诉我如何显示它,这是一个代码
imagePickerController = [[UIImagePickerController alloc] init];
imagePickerController.delegate = self;
imagePickerController.sourceType = sourceType;
imagePickerController.showsCameraControls = NO;
imagePickerController.cameraViewTransform = CGAffineTransformScale(imagePickerController.cameraViewTransform, 0.5f, 0.5f);
imagePickerController.cameraOverlayView = self.tabBarController.view;
self.navigationController.navigationBarHidden = YES;
imagePickerController.navigationBar.barStyle = UIBarStyleBlack;
[self presentModalViewController:imagePickerController animated:YES];
尝试这个
[[UIApplication sharedApplication] setStatusBarHidden:NO animated:NO];
[[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleBlackTranslucent animated:YES];
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.