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