UINavigationBar

public extension UINavigationBar

NavigationBar+Accessable is used as a customized navigation bar.

Author

Adamas

Version

1.5.0

Date

06/09/2019
  • Set the title of the navigation bar.

    Declaration

    Swift

    var title: String? { get set }
  • Set the title of the left navigation button.

    Declaration

    Swift

    var leftButtonTitle: String? { get set }
  • Set the title of the right navigation button.

    Declaration

    Swift

    var rightButtonTitle: String? { get set }
  • Set the action for the left button.

    Declaration

    Swift

    func setLeftButtonAction(action: Selector,
                             withTarget target: AnyObject)

    Parameters

    action

    The action to be settled.

    target

    The object.

  • Set the action for the right button.

    Declaration

    Swift

    func setRightButtonAction(action: Selector,
                              withTarget target: AnyObject)

    Parameters

    action

    The action to be settled.

    target

    The object.