RBMenuViewDelegate Protocol Reference

Conforms to NSObject
Declared in RBMenuView.h

Overview

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

– menuView:segmentIdentifier:buttonWasTappedWithIdentifier:

Called when a menu button is tapped.

- (void)menuView:(nonnull RBMenuView *)menuView segmentIdentifier:(nonnull NSString *)segmentIdentifier buttonWasTappedWithIdentifier:(nonnull NSString *)buttonidentifier

Parameters

menuView

The RBMenuView object.

segmentIdentifier

The identifier of the segment.

buttonidentifier

The identifier of the button.

Discussion

Called when a menu button is tapped.

Declared In

RBMenuView.h

– menuView:segmentIdentifier:toggleButtonWithIdentifier:selectionDidChangeTo:

Called when a menu toggle button is tapped.

- (void)menuView:(nonnull RBMenuView *)menuView segmentIdentifier:(nonnull NSString *)segmentIdentifier toggleButtonWithIdentifier:(nonnull NSString *)toggleButtonIdentifier selectionDidChangeTo:(BOOL)selected

Parameters

menuView

The RBMenuView object.

segmentIdentifier

The name of the segment.

toggleButtonIdentifier

The name of the toggle button.

selected

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

Discussion

Called when a menu toggle button is tapped.

Declared In

RBMenuView.h