내 응용 프로그램은 UIImagePickerContoller를 사용하며 iOS 7 (iPad 및 iPhone)과 잘 작동하지만 iOS 6을 사용하는 iPhone에서만 작동합니다. iOS 6이 탑재 된 iPad에서는 시뮬레이터에서 충돌합니다. 버튼을 클릭하여이 클래스를 사용하여 사진 라이브러리에서 사진을 선택하지만 디버거 로그에 이유를 나타내지는 않습니다. 내 앱이 세로보기로 제한됩니다. 코드는 다음과 같습니다 :iOS6 on iPad UIImagePickerController 문제
-(IBAction)selectPicturePressed:(id)sender
{
//Open a UIImagePickerController to select the picture
UIImagePickerController *imgPicker = [[UIImagePickerController alloc] init];
imgPicker.delegate = self;
imgPicker.sourceType = UIImagePickerControllerSourceTypePhotoLibrary;
[self.navigationController presentViewController:imgPicker animated:YES completion:nil];
}
컨트롤러 대신 컨트롤러의 탐색 컨트롤러에서 선택기를 표시하는 이유가 있습니까? – Simon