YNDropDownDelegate

public protocol YNDropDownDelegate: class

Delegate to get call back

  • Hide menu

    Declaration

    Swift

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

    Declaration

    Swift

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

    Parameters

    title

    String

    index

    Index should be smaller than your menu counts

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

    Declaration

    Swift

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

    Parameters

    title

    View you want to change

    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

    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

    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

    func normalSelected(at index: Int)

    Parameters

    index

    Index should be smaller than your menu counts