ビューにカスタムがcameraOverlay割り当てられていUIImagePickerDelegateます (この場合はUITabViewController)。
デリゲート メソッドで:
-(void)imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary *)info
{
[[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleDefault animated:NO];
[[UIApplication sharedApplication] setStatusBarHidden:NO withAnimation:UIStatusBarAnimationNone];
SelectPhotoTypeViewController *destinationController = [self.storyboard instantiateViewControllerWithIdentifier:@"SelectPhotoTypeView"];
destinationController.image = [info objectForKey:UIImagePickerControllerOriginalImage] forKey:@"image"];
[picker pushViewController:destinationController animated:YES];
}
これが実行されると、 が のSelectPhotoTypeViewControllerにプッシュされNavigationControllerますUIImagePicker( から継承されるためUINavigationController)。で写真の種類を選び、 でをSelectPhotoTypeViewController押します。このビューでは、最初の行が の後ろに隠れています。UIViewControllerUITableViewUITableViewUINavigationBar
cameraOverlayこれは、ギャラリーから画像を選択するときではなく、から画像を選択する (つまり、写真を撮る) 場合にのみ発生します。その理由は何ですか?