UIBarButtonItem

public extension UIBarButtonItem
  • SwifterSwift: Creates a flexible space UIBarButtonItem

    Declaration

    Swift

    static var flexibleSpace: UIBarButtonItem { get }

Methods

  • SwifterSwift: Add Target to UIBarButtonItem

    Declaration

    Swift

    func addTargetForAction(_ target: AnyObject, action: Selector)

    Parameters

    target

    target.

    action

    selector to run when button is tapped.

  • SwifterSwift: Creates a fixed space UIBarButtonItem with a specific width

    Declaration

    Swift

    static func fixedSpace(width: CGFloat) -> UIBarButtonItem

    Parameters

    width

    Width of the UIBarButtonItem