質問

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