2
当我在iPod上打开相机时,我的应用程序崩溃。我为此使用了UIImagePickerController
。该应用在iPhone上运行良好。通过UIImagePickerController使用相机在iPod上崩溃
什么可能导致错误?
当我在iPod上打开相机时,我的应用程序崩溃。我为此使用了UIImagePickerController
。该应用在iPhone上运行良好。通过UIImagePickerController使用相机在iPod上崩溃
什么可能导致错误?
您可以使用+ isSourceTypeAvailable:方法的UIImagePickerController:
if ([UIImagePickerController isSourceTypeAvailable: UIImagePickerControllerSourceTypeCamera])
// Has camera
我不明白为什么在具有相机的iPod touch上出现这种情况? – 2015-06-22 16:57:03
如果可能,请提供有关崩溃的更多信息。你是否看到任何痕迹/日志或其他可能有助于识别问题的东西? – 2013-04-21 19:07:54