UIBarButtonItem

class UIBarButtonItem : UIBarItem, NSCoding
  • Sets the text style of the item for a given control state.

    Declaration

    Swift

    public func setTitleTextStyle(with textStyle: TextStyle, for controlState: UIControlState) -> <<error type>>

    Parameters

    textStyle

    Text style.

    controlState

    Control state.