YNDropDownView

open class YNDropDownView: UIView

Inherit this class to customize functions

  • YNDropDownDelegate for call back

    Declaration

    Swift

    open weak var delegate: YNDropDownDelegate?
  • Override this method if you want to get call back opened

    Declaration

    Swift

    open func dropDownViewOpened()
  • Override this method if you want to get call back closed

    Declaration

    Swift

    open func dropDownViewClosed()
  • hide menu self

    Declaration

    Swift

    open func hideMenu()
  • Change menu title you called. you can call it in YNDropDownMenu or YNDropDownView

    Declaration

    Swift

    open func changeMenu(title: String, at index: Int)

    Parameters

    title

    String

    index

    Index should be smaller than your menu counts

  • Change menu title you called. you can call it in YNDropDownMenu or YNDropDownView

    Declaration

    Swift

    open func changeMenu(title: String, status: YNStatus, at index: Int)

    Parameters

    title

    String

    status

    normal, selected, disabled

    index

    Index should be smaller than your menu counts

  • Change view you called. you can call it in YNDropDownMenu or YNDropDownView

    Declaration

    Swift

    open func changeView(view: UIView, at index: Int)

    Parameters

    view

    View you want to change

    index

    Index should be smaller than your menu counts

  • Make button label always selected. (not button image)

    Declaration

    Swift

    open func alwaysSelected(at index: Int)

    Parameters

    index

    Index should be smaller than your menu counts

  • Make button label normal that selected before. (not button image)

    Declaration

    Swift

    open func normalSelected(at index: Int)

    Parameters

    index

    Index should be smaller than your menu counts

  • Deprecated use changeMenu(title: String, at index: Int) instead

    Declaration

    Swift

    open func changeMenuTitleAt(index: Int, title: String)