菜鸟教程小白 发表于 2022-12-12 13:33:30

iOS 8 交互式通知默认不显示按钮


                                            <p><p>我正在使用 iOS 8 中的新交互式通知;默认情况下,它无法让操作按钮 <code>(在“横幅模式”)</code> 显示。就像现在一样,我必须在通知顶部向下滑动才能看到它们。</p>

<p>这是默认行为,还是我的代码烂了?</p>

<p>对于下面的图片,我使用的是 <code>XCode 6.1.1 + iOS 8.1 (Simulator)</code></p>

<p><strong>我得到了什么:</strong></p>

<p> <img src="/image/UCEKL.png" alt="What I get"/> </p>

<p><strong>我想要什么:</strong></p>

<p> <img src="/image/eFKTb.png" alt="What I want"/> </p></p>
                                    <br><hr><h1><strong>Best Answer-推荐答案</ strong></h1><br>
                                            <p><p>这是默认行为,您的代码没有问题。 </p>

<p>更多细节引用下面的教程,结果和你的一样。
<a href="http://www.thinkandbuild.it/interactive-notifications-with-notification-actions/" rel="noreferrer noopener nofollow">http://www.thinkandbuild.it/interactive-notifications-with-notification-actions/</a> </p></p>
                                   
                                                <p style="font-size: 20px;">关于iOS 8 交互式通知默认不显示按钮,我们在Stack Overflow上找到一个类似的问题:
                                                        <a href="https://stackoverflow.com/questions/27791111/" rel="noreferrer noopener nofollow" style="color: red;">
                                                                https://stackoverflow.com/questions/27791111/
                                                        </a>
                                                </p>
                                       
页: [1]
查看完整版本: iOS 8 交互式通知默认不显示按钮