PTReflowViewControllerDelegate
@protocol PTReflowViewControllerDelegate <NSObject>
The delegate of a reflow view controller must adopt the PTReflowViewControllerDelegate
protocol.
These methods allow the delegate to receive notification when the page is changed and when the
reflow view controller should be dismissed.
-
Called after the current page number has changed.
Declaration
Objective-C
- (void)reflowController:(nonnull PTReflowViewController *)reflowController didChangeToPageNumber:(int)pageNumber;
Swift
optional func reflow(_ reflowController: PTReflowViewController, didChangeToPageNumber pageNumber: Int32)
-
Called when an unhandled tap occurs in the reflow view controller.
Declaration
Objective-C
- (void)reflowController:(nonnull PTReflowViewController *)reflowController handleTap:(nonnull UITapGestureRecognizer *)gestureRecognizer;
Swift
optional func reflow(_ reflowController: PTReflowViewController, handleTap gestureRecognizer: UITapGestureRecognizer)
-
Called when the reflow view controller should be dismissed. This is called only when the reflow view controller is presented modally.
Declaration
Objective-C
- (void)reflowControllerDidCancel: (nonnull PTReflowViewController *)reflowController;
Swift
optional func reflowControllerDidCancel(_ reflowController: PTReflowViewController)