Skip to content

UITabBar

UITabBar 继承自 UIView,用于展示一组 UITabBarItem 并管理选中项。

属性类型说明
itemsNSArraytab item 列表。
selectedItemUITabBarItem | null当前选中项。
delegateid代理对象。
selectionIndicatorImageUIImage | null选中指示图片。
backgroundImageUIImage | null背景图。
barTintColorUIColor | nullbar 背景色。
selectedImageTintColorUIColor | null选中图片 tintColor。
barStylenumberbar 样式。
translucentboolean是否半透明。
itemWidthnumberitem 宽度。
itemSpacingnumberitem 间距。
方法参数返回值说明
setItemsAnimated(items, animated)items: NSArray, animated: booleanvoid设置 items(可动画)。
beginCustomizingItems(items)items: NSArrayvoid进入自定义模式。
endCustomizingAnimated(animated)animated: booleanboolean结束自定义模式。
isCustomizing()boolean是否处于自定义模式。

当前运行时未额外暴露 UITabBar 的类成员。

头文件 API 清单

正在加载…

协议:,来源: