Note that there are some explanatory texts on larger screens.

plurals
  1. POModally present UIImagePickerController does not hide UITabBar if current view has UINavigationController as container controller
    primarykey
    data
    text
    <p>I have a tabbar app and the second tab goes to a navigation controller-style view.</p> <p>on the rightButton of the navigation bar I have a camera icon to present modally the ImagePicker. However it will not become fullscreen but instead underlay the tabbar.</p> <p>The first image show that I have a navigation controller container this first rootView which has a camera button. When click it will just create a UIImagePickerController and present it modally. Nothing special.</p> <p><a href="http://www.jobline.com.sg/images/no_use/1.png" rel="nofollow noreferrer">first http://www.jobline.com.sg/images/no_use/1.png</a></p> <p>However the result of the camera is missing the control to take/cancel picture like this:</p> <p><a href="http://www.jobline.com.sg/images/no_use/2.png" rel="nofollow noreferrer">second http://www.jobline.com.sg/images/no_use/2.png</a></p> <p>How do I hide the UITabBar and able to see the camera control? I know it can be done because the Skype profile tab also have a camera and then present a UIActionSheet to "Take picture" and then the full-screen camera view. I believe the profile tab has navigation controller as its root view also.</p> <p>Thanks a million for your help.</p> <p>Here is the code that I used:</p> <pre><code>- (void)takePicture:(id)sender { UIImagePickerController *imagePicker = [[UIImagePickerController alloc] init]; if ([UIImagePickerController isSourceTypeAvailable:UIImagePickerControllerSourceTypeCamera]) { imagePicker.sourceType = UIImagePickerControllerSourceTypeCamera; } else { imagePicker.sourceType = UIImagePickerControllerSourceTypePhotoLibrary; } [self presentModalViewController:imagePicker animated:YES]; } </code></pre> <p>It is a fairly straightforward code of presenting an imagePicker modally. So I wonder why there is no camera control and how come my tabbar can overlap it. Is it because of my view hierarchy?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload