TabBar

@objc(FWTabBar)
@objcMembers
open class TabBar : UITabBar

FWTabBar是高度自定义的UITabBar子类,通过添加UIControl的方式实现自定义tabBarItem的效果。目前支持tabBar的大部分属性的设置,例如delegate,items,selectedImge,itemPositioning,itemWidth,itemSpacing等,以后会更加细致的优化tabBar原有属性的设置效果。

  • tabBar中items布局偏移量

    Declaration

    Swift

    public var itemEdgeInsets: UIEdgeInsets
  • 是否设置为自定义布局方式,默认为空。如果为空,则通过itemPositioning属性来设置。如果不为空则忽略itemPositioning,所以当tabBar的itemCustomPositioning属性不为空时,如果想改变布局规则,请设置此属性而非itemPositioning。

    Declaration

    Swift

    public var itemCustomPositioning: TabBarItemPositioning? { get set }
  • 自定义'More'按钮样式,继承自FWTabBarItemContentView

    Declaration

    Swift

    open var moreContentView: TabBarItemContentView? { get set }
  • Undocumented

    Declaration

    Swift

    open override var items: [UITabBarItem]? { get set }
  • Undocumented

    Declaration

    Swift

    open var isEditing: Bool { get set }
  • Undocumented

    Declaration

    Swift

    open override func setItems(_ items: [UITabBarItem]?, animated: Bool)
  • Undocumented

    Declaration

    Swift

    open override func beginCustomizingItems(_ items: [UITabBarItem])
  • Undocumented

    Declaration

    Swift

    open override func endCustomizing(animated: Bool) -> Bool
  • Undocumented

    Declaration

    Swift

    open override func layoutSubviews()
  • Undocumented

    Declaration

    Swift

    open override func point(inside point: CGPoint, with event: UIEvent?) -> Bool