菜鸟教程小白 发表于 2022-12-11 16:51:04

ios - Disqus 和 iOS 集成 - UIImagePickerController


                                            <p><p>我正在尝试将 Disqus 集成到我的 iOS 应用程序中。
我正在关注 Disqus 的人在这里写的非常好的指南
<a href="https://help.disqus.com/customer/portal/articles/472096" rel="noreferrer noopener nofollow">https://help.disqus.com/customer/portal/articles/472096</a> </p>

<p>我基本上使用 UIWebView 来显示一个托管的 HTML 页面,该页面加载了 disqus 评论
一切正常。</p>

<p>能够查看评论,添加评论,如下所示。</p>

<p>现在我选择添加图片选项,然后在此处获取此菜单。</p>

<p> <a href="/image/vKX2V.png" rel="noreferrer noopener nofollow"><img src="/image/vKX2V.png" alt="enter image description here"/></a> </p>

<p>现在,当我选择“照片库”时, ViewController 会关闭并在控制台中发出警告</p>

<blockquote>
<p>Warning: Attempt to present UIImagePickerController: 0x7faebb247a00
on UINavigationController: 0x7faebb179400 whose view is not in the
window hierarchy!</p>
</blockquote>

<p>基本上,评论 View (如屏幕截图所示)从另一个 ViewController 模态显示,该 Controller 也以模态显示。</p>

<p>我想知道我们是否不能模态显示多个 ViewController ,然后 Disqus ImagePicker 也试图在 2 个模态呈现的 ViewController 之上呈现自己。是这个问题吗?</p>

<p>任何指针将不胜感激。</p>

<p>谢谢,
卡米FC</p></p>
                                    <br><hr><h1><strong>Best Answer-推荐答案</ strong></h1><br>
                                            <p><p>好的,我解决了这个问题。</p>

<p>我避免以模态方式显示 ViewController ,我可以选择图像。</p></p>
                                   
                                                <p style="font-size: 20px;">关于ios - Disqus 和 iOS 集成 - UIImagePickerController,我们在Stack Overflow上找到一个类似的问题:
                                                        <a href="https://stackoverflow.com/questions/38072586/" rel="noreferrer noopener nofollow" style="color: red;">
                                                                https://stackoverflow.com/questions/38072586/
                                                        </a>
                                                </p>
                                       
页: [1]
查看完整版本: ios - Disqus 和 iOS 集成 - UIImagePickerController