菜鸟教程小白 发表于 2022-12-11 22:07:41

iphone - UITabbarController 允许在更多选项卡中进行编辑


                                            <p><p>如何在更多选项卡中启用编辑功能?我可以单击编辑并查看项目,但我无法移动它们。 UITabbarController中有选项吗?</p></p>
                                    <br><hr><h1><strong>Best Answer-推荐答案</ strong></h1><br>
                                            <p><p>将 <code>tabBarController.customizableViewControllers</code> 设置为某个值,<em>最简单的</em>情况是:</p>

<pre><code>tabBarController.customizableViewControllers = tabBarController.viewControllers;
</code></pre>

<p>在你设置 viewControllers 之后。</p></p>
                                   
                                                <p style="font-size: 20px;">关于iphone - UITabbarController 允许在更多选项卡中进行编辑,我们在Stack Overflow上找到一个类似的问题:
                                                        <a href="https://stackoverflow.com/questions/9728916/" rel="noreferrer noopener nofollow" style="color: red;">
                                                                https://stackoverflow.com/questions/9728916/
                                                        </a>
                                                </p>
                                       
页: [1]
查看完整版本: iphone - UITabbarController 允许在更多选项卡中进行编辑