菜鸟教程小白 发表于 2022-12-13 07:43:04

ios - reloadRootControllersWithNames 隐藏标题和状态栏,watchkit


                                            <p><p>当尝试使用 <code>reloadRootControllersWithNames</code> 时,在我的 View 加载后,它们的标题与状态栏的其余部分一起消失。 </p>

<p><code>Watchkit</code> 中是否有指定显示和隐藏状态栏和标题的内容?</p>

<p><strong>代码:</strong></p>

<pre><code> contexts:nil];
</code></pre></p>
                                    <br><hr><h1><strong>Best Answer-推荐答案</ strong></h1><br>
                                            <p><p>要回答您的问题,不,目前没有 WatchKit 方法可以隐藏或显示状态栏及其标题。</p>

<p>您描述的体验听起来类似于这个错误(已在 Watch OS 1.0.1 中修复):<a href="https://stackoverflow.com/questions/29311026/apple-watch-status-bar-not-visible-after-presenting-a-modal-screen-from-page-ba" rel="noreferrer noopener nofollow">Apple Watch: Status bar not visible after presenting a modal screen from page based navigation</a> </p></p>
                                   
                                                <p style="font-size: 20px;">关于ios - reloadRootControllersWithNames 隐藏标题和状态栏,watchkit,我们在Stack Overflow上找到一个类似的问题:
                                                        <a href="https://stackoverflow.com/questions/30625309/" rel="noreferrer noopener nofollow" style="color: red;">
                                                                https://stackoverflow.com/questions/30625309/
                                                        </a>
                                                </p>
                                       
页: [1]
查看完整版本: ios - reloadRootControllersWithNames 隐藏标题和状态栏,watchkit