有没有办法阻止选项卡栏项目的配置?
我构建了一个包含 5 个以上选项卡的选项卡栏,其余部分会自动添加到“更多”视图中。这很好,但除此之外,用户还可以“编辑”应用程序选项卡的配置。
我不希望用户能够这样做。有没有办法阻止用户这样做?
I constructed a tabbar with more than 5 tabs and the remainders were automatically added into the "More" view. That is fine, but along with that, the user is able to "Edit" the configuration of the app's tabs.
I do not want the user to be able to do that. Is there a way to prevent the user from doing this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
查看 UITabBarController 文档。搜索“customizedViewControllers”
基本上,您要做的就是使用以下代码,将值设置为 nil:
干杯,
虚拟网络
Take a look at the UITabBarController documentation. Search for "customizableViewControllers"
Basically what you have to do is use the following code, to set the value to nil:
Cheers,
VFN