سؤال

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