OGeek|极客世界-中国程序员成长平台

标题: ios - 通过 UIImagePickerController 使用相机在 iPod 上崩溃 [打印本页]

作者: 菜鸟教程小白    时间: 2022-12-13 02:24
标题: ios - 通过 UIImagePickerController 使用相机在 iPod 上崩溃

当我打开 iPod 上的相机时,我的应用程序崩溃了。我为此使用了 UIImagePickerController。该应用在 iPhone 上运行良好。

什么可能导致错误?



Best Answer-推荐答案


你可以在 UIImagePickerController 中使用 +isSourceTypeAvailable: 方法:

if ([UIImagePickerController isSourceTypeAvailable: UIImagePickerControllerSourceTypeCamera])
   // Has camera

关于ios - 通过 UIImagePickerController 使用相机在 iPod 上崩溃,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16134870/






欢迎光临 OGeek|极客世界-中国程序员成长平台 (http://sqlite.in/) Powered by Discuz! X3.4