MBPPivotViewDelegate
Objective-C
@protocol MBPPivotViewDelegate <NSObject>
Swift
protocol MBPPivotViewDelegate : NSObjectProtocol
If the user of the PivotView want’s to be notified on pivot move events, it can implement this protocol.
-
Called before the move animation will appear
Declaration
Objective-C
- (void)pivotView:(MBPPivotView *)pivotView willSelectIndex:(NSUInteger)index;
Swift
func pivotView(_ pivotView: MBPPivotView!, willSelect index: UInt)
Parameters
pivotView
current pivot view
index
new index which will be selected
-
Called after the move aniamtion is over
Declaration
Objective-C
- (void)pivotView:(MBPPivotView *)pivotView didSelectIndex:(NSUInteger)index;
Swift
func pivotView(_ pivotView: MBPPivotView!, didSelect index: UInt)
Parameters
pivotView
current pivot view
index
new index which will be selected