菜鸟教程小白 发表于 2022-12-12 12:41:37

ios - 可以使用 SLButton 或 SLElement 来关闭弹出窗口中呈现的 UIActionSheet 吗?


                                            <p><p>我试过了:</p>

<pre><code>SLButton *actionSheetButton = ; // also tried same with SLElement

BOOL popoverDisplayed = SLWaitUntilTrue(, 3.0);

if (popoverDisplayed) {
    ;
}
</code></pre>

<p>我能够使用 SLPopover 关闭/取消操作表,但我想测试按钮操作。</p>

<p>谢谢。</p>

<p><em>编辑:</em></p>

<p>仪器中记录的错误:</p>

<blockquote>
<p>Unexpected exception occurred <code>***SLUIAElementNotTappableException***</code>
for reason: Element &#39;<code>&lt;SLButton description:&#34;Remove&#34;</code>&gt;&#39; is not tappable.</p>
</blockquote></p>
                                    <br><hr><h1><strong>Best Answer-推荐答案</ strong></h1><br>
                                            <p><p>Subliminal 中有两个错误,即 Subliminal 根本无法操作 Action 表,然后当它们处于弹出框时,进一步无法操作 Action 表。 <a href="https://github.com/inkling/Subliminal/issues/46" rel="noreferrer noopener nofollow">This issue</a>为任何感兴趣的人提供更多详细信息。这些错误在提交 <a href="https://github.com/inkling/Subliminal/commit/450f37ce2826d97c2073599537ef8dc5eca04aa7" rel="noreferrer noopener nofollow">450f37ce28</a> 时已修复上主。感谢@Andrew 的报告!</p></p>
                                   
                                                <p style="font-size: 20px;">关于ios - 可以使用 SLButton 或 SLElement 来关闭弹出窗口中呈现的 UIActionSheet 吗?,我们在Stack Overflow上找到一个类似的问题:
                                                        <a href="https://stackoverflow.com/questions/17757660/" rel="noreferrer noopener nofollow" style="color: red;">
                                                                https://stackoverflow.com/questions/17757660/
                                                        </a>
                                                </p>
                                       
页: [1]
查看完整版本: ios - 可以使用 SLButton 或 SLElement 来关闭弹出窗口中呈现的 UIActionSheet 吗?