UIBarButtonItem

class UIBarButtonItem : UIBarItem, NSCoding
  • SwifterSwift: Add Target to UIBarButtonItem

    Declaration

    Swift

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

    Parameters

    target

    target.

    action

    selector to run when button is tapped.