0

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(imagePickerController.cameraViewTransform, 0.5f, 0.5f);


imagePickerController.cameraOverlayView = self.tabBarController.view;

self.navigationController.navigationBarHidden = YES;

imagePickerController.navigationBar.barStyle = UIBarStyleBlack;
[self presentModalViewController:imagePickerController animated:YES];
user939171
  • 11
  • 4

1 Answers1

0

try this

[[UIApplication sharedApplication] setStatusBarHidden:NO animated:NO];

[[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleBlackTranslucent animated:YES];
Ankit Srivastava
  • 12,347
  • 11
  • 63
  • 115
  • sorry forget to include the second line – Ankit Srivastava Sep 23 '11 at 11:25
  • try the following in the: viewDidAppear [self performSelector:@selector(showStatusBar) withObject:nil afterDelay:0.1]; and put [[UIApplication sharedApplication] setStatusBarHidden:NO withAnimation:UIStatusBarAnimationNone] in showStatusBar ... that's all i got.. works for me this. – Ankit Srivastava Sep 23 '11 at 11:35