문제

My application crashes when I open the camera on my iPod. I used UIImagePickerController for this. The app works fine on an iPhone.

What could cause the error?

도움이 되었습니까?

해결책

You can use +isSourceTypeAvailable: method in UIImagePickerController:

if ([UIImagePickerController isSourceTypeAvailable: UIImagePickerControllerSourceTypeCamera])
   // Has camera
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top