Iphone 在照相机图像采集器中显示状态栏
我正在imagePicker上工作,我需要用一些叠加视图显示相机。但它隐藏了状态栏。请告诉我如何显示它。这是一个代码Iphone 在照相机图像采集器中显示状态栏,iphone,objective-c,ios,Iphone,Objective C,Ios,我正在imagePicker上工作,我需要用一些叠加视图显示相机。但它隐藏了状态栏。请告诉我如何显示它。这是一个代码 imagePickerController = [[UIImagePickerController alloc] init]; imagePickerController.delegate = self; imagePickerController.sourceType = sourceType; imagePickerController.showsCameraContro
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];
抱歉,忘记包含第二行。请尝试以下操作:ViewDidDisplay[自执行选择器:@selectorshowStatusBar with Object:nil afterDelay:0.1];并将[[UIApplication sharedApplication]setStatusBarHidden:NO with Animation:UIStatusBaranimationne]放入showStatusBar。。。这就是我所有的。。这对我有用。可能重复:@peko,但仍然没有可用的工作解决方案