I am sure this is a mistake, but I decided to check. I used the camera overlay to add a button so that on iphone the user can switch from the camera to the photo library. When the button is pressed, the source type switches normally, but there is no status bar in the photo library. For the rest of this session, the status bar remains missing in all the views displayed on the isStatusBarHidden NO screen.
This creates a camera overlay view.
if (cameraOverlayView == nil) {
[[NSBundle mainBundle] loadNibNamed:@"CameraOverlayView" owner:self options:nil];
}
If the camera is available, this is when I set the source type and add an overlay
if ([UIImagePickerController isSourceTypeAvailable:UIImagePickerControllerSourceTypeCamera]) {
[imagePicker setSourceType:UIImagePickerControllerSourceTypeCamera];
[imagePicker setCameraOverlayView:cameraOverlayView];
}
Here is the action instruction for changing the type of source.
- (IBAction) selectImage; {[imagePicker setSourceType: UIImagePickerControllerSourceTypePhotoLibrary]; }
, .
PS. .