Declared in MWFSlideNavigationViewController.h

Overview

The MWFSlideNavigationViewControllerDelegate protocol defines methods a slide navigation controller delegate can implement to change the behavior when sliding animation is performed.

Tasks

Customizing behavior

Instance Methods

slideNavigationViewController:animateSlideFor:withSlideDirection:distance:orientation:

Sent to receiver when slide animation is to be performed.

- (void)slideNavigationViewController:(MWFSlideNavigationViewController *)controller animateSlideFor:(UIViewController *)targetController withSlideDirection:(MWFSlideDirection)slideDirection distance:(CGFloat)distance orientation:(UIInterfaceOrientation)orientation

Parameters

controller

The slide navigation view controller.

targetController

The secondary view controller to be revealed/concealed by the animation.

slideDirection

The animation’s slide direction.

distance

The slide distance.

orientation

The current interface orientation.

Discussion

Sent to receiver when slide animation is to be performed.

Declared In

MWFSlideNavigationViewController.h

slideNavigationViewController:didPerformSlideFor:withSlideDirection:distance:orientation:

Sent to receiver after sliding animation is completed.

- (void)slideNavigationViewController:(MWFSlideNavigationViewController *)controller didPerformSlideFor:(UIViewController *)targetController withSlideDirection:(MWFSlideDirection)slideDirection distance:(CGFloat)distance orientation:(UIInterfaceOrientation)orientation

Parameters

controller

The slide navigation view controller.

targetController

The secondary view controller that was revealed/concealed by the animation.

slideDirection

The animation’s slide direction.

distance

The slide distance.

orientation

The current interface orientation.

Discussion

Sent to receiver after sliding animation is completed.

Declared In

MWFSlideNavigationViewController.h

slideNavigationViewController:distanceForSlideDirecton:portraitOrientation:

Sent to receiver when panning is detected.

- (NSInteger)slideNavigationViewController:(MWFSlideNavigationViewController *)controller distanceForSlideDirecton:(MWFSlideDirection)direction portraitOrientation:(BOOL)portraitOrientation

Parameters

controller

The slide navigation view controller.

direction

The slide direction.

portraitOrientation

If portrait, YES; otherwise NO.

Return Value

The slide distance.

Discussion

Sent to receiver when panning is detected.

Declared In

MWFSlideNavigationViewController.h

slideNavigationViewController:willPerformSlideFor:withSlideDirection:distance:orientation:

Sent to receiver before sliding animation is performed.

- (void)slideNavigationViewController:(MWFSlideNavigationViewController *)controller willPerformSlideFor:(UIViewController *)targetController withSlideDirection:(MWFSlideDirection)slideDirection distance:(CGFloat)distance orientation:(UIInterfaceOrientation)orientation

Parameters

controller

The slide navigation view controller.

targetController

The secondary view controller to be revealed/concealed by the animation.

slideDirection

The animation’s slide direction.

distance

The slide distance.

orientation

The current interface orientation.

Discussion

Sent to receiver before sliding animation is performed.

Declared In

MWFSlideNavigationViewController.h