我正在使用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];
答案 0 :(得分:0)
试试这个
[[UIApplication sharedApplication] setStatusBarHidden:NO animated:NO];
[[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleBlackTranslucent animated:YES];