当我打开 iPod 上的相机时,我的应用程序崩溃了。我为此使用了 UIImagePickerController 。该应用程序在 iPhone 上运行良好。
什么可能导致错误?
最佳答案
您可以在 UIImagePickerController 中使用 +isSourceTypeAvailable: 方法:
if ([UIImagePickerController isSourceTypeAvailable: UIImagePickerControllerSourceTypeCamera])
// Has camera
关于ios - 通过 UIImagePickerController 使用相机在 iPod 上崩溃,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16134870/