ios - 通过 UIImagePickerController 使用相机在 iPod 上崩溃
<p><p>当我打开 iPod 上的相机时,我的应用程序崩溃了。我为此使用了 <code>UIImagePickerController</code>。该应用在 iPhone 上运行良好。</p>
<p>什么可能导致错误?</p></p>
<br><hr><h1><strong>Best Answer-推荐答案</ strong></h1><br>
<p><p>你可以在 UIImagePickerController 中使用 +isSourceTypeAvailable: 方法:</p>
<pre><code>if ()
// Has camera
</code></pre></p>
<p style="font-size: 20px;">关于ios - 通过 UIImagePickerController 使用相机在 iPod 上崩溃,我们在Stack Overflow上找到一个类似的问题:
<a href="https://stackoverflow.com/questions/16134870/" rel="noreferrer noopener nofollow" style="color: red;">
https://stackoverflow.com/questions/16134870/
</a>
</p>
页:
[1]