RBMenuViewDelegate Protocol Reference

Conforms to NSObject
Declared in RBMenuView.h

Overview

A delegate to receive button selection events for a RBMenuView object.

– menuView:segmentIdentifier:didSelectButtonWithIdentifier:

Called when a menu button is tapped.

- (void)menuView:(nonnull RBMenuView *)menuView segmentIdentifier:(nonnull NSString *)segmentIdentifier didSelectButtonWithIdentifier:(nonnull NSString *)identifier

Parameters

menuView

The RBMenuView object.

segmentIdentifier

The identifier of the segment.

identifier

The identifier of the button.

Declared In

RBMenuView.h

– menuView:segmentIdentifier:didToggleButtonWithIdentifier:selectionDidChangeTo:

Called when a menu toggle button is tapped.

- (void)menuView:(nonnull RBMenuView *)menuView segmentIdentifier:(nonnull NSString *)segmentIdentifier didToggleButtonWithIdentifier:(nonnull NSString *)identifier selectionDidChangeTo:(BOOL)selected

Parameters

menuView

The RBMenuView object.

segmentIdentifier

The name of the segment.

identifier

The identifier of the toggle button.

selected

Whether or not the toggle button was selected (true) or unselected (false).

Declared In

RBMenuView.h