UIBarButtonItem

public extension UIBarButtonItem
  • 图片初始化边界构造器

    Declaration

    Swift

    convenience init(image: UIImage?, style: UIBarButtonItem.Style, handler: @escaping NormalClosure)

    Parameters

    image

    图片

    style

    风格

    handler

    点击回调

  • Declaration

    Swift

    @objc
    func imageActionClosure()
  • 文字初始化便捷构造器

    Declaration

    Swift

    convenience init(title: String?, style: UIBarButtonItem.Style, handler: @escaping NormalClosure)

    Parameters

    title

    文字

    style

    风格

    handler

    点击回调

  • Declaration

    Swift

    @objc
    func titleActionClosure()