뷰 (이 경우는 UITabViewController
)에 할당 된 사용자 정의 cameraOverlay
이 있습니다. 위임 방법에 사용자 정의 카메라 뷰를 UIImagePickerController로 푸시하면 UINavigation 막대에 의해 숨겨진 UITableView 셀
-(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];
}
(그것은 UINavigationController
상속으로) 이것은 SelectPhotoTypeViewController
가 UIImagePicker
의 NavigationController
로 푸시 달린다. SelectPhotoTypeViewController
에서 사진 유형을 선택하고 UIViewController
을 UITableView
으로 푸시합니다. 이보기에서는 UITableView
첫 행이 UINavigationBar
뒤에 숨어 있습니다.
이것은 갤러리에서 이미지를 선택할 때 cameraOverlay
에서 이미지 (즉, 사진을 찍을 때)를 선택할 때만 발생합니다. 그 이유는 무엇일까요?
나는 이것을 시도했지만 여전히 운이 없다. 'cameraOverlay'를 사용할 때'UIImagePickerController'에서'NavigationController'와 관련이있는 것처럼 보입니다. 'NavigationControllers'가 제대로 설정되었는지 확인하고, 운이 좋으면 게시 할 것입니다. – pechar