Question

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?

Was it helpful?

Solution

You can use +isSourceTypeAvailable: method in UIImagePickerController:

if ([UIImagePickerController isSourceTypeAvailable: UIImagePickerControllerSourceTypeCamera])
   // Has camera
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top