从视图配置 UItabBar [英] Configure UItabBar from view
问题描述
大家好,我很难从这个问题中找到解决方案,所以我发布了它.所以基本上在 ipod 应用程序中,我们可以从应用程序配置标签栏项目并拖动它们来更改和自定义它.
Hi guys i am having trouble to find out a solution from this problem so i am posting it. So basically in ipod application we can configure the tabbar items from the application and drag them to change and customize it for ourself.
有人知道怎么做吗?
请看附件,谢谢.
推荐答案
您真的不需要再做任何事情了.当您向标签栏控制器添加 6 个或更多标签时,该功能将自动可用.
You really don't have to do anything more. That feature is automatically available when you add 6 or more tabs to the tab bar controller.
UITabBarController
有一个 customizableViewControllers
属性,它是所有可自定义视图控制器的数组.这被设置为 viewControllers
属性,因此默认情况下可以自定义所有视图控制器.如果您打算限制它,请适当设置此属性.
UITabBarController
has a customizableViewControllers
property which is an array of all customizable view controllers. This is set to the viewControllers
property so all view controllers can be customized by default. If you intend to limit it then set this property appropriately.
这篇关于从视图配置 UItabBar的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!