开发者

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];
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜