Make presentViewController's Animation more like pushViewController's。
Drag ACSideslipTransition src folder into your project.
#import "UIViewController+ACSideslip.h"
- Sideslip from some viewController to a new viewController
[self ac_sideslip:newVC completion:^{
NSLog(@"sideslip complete");
}];
- Dismiss Delegate
#import "ACSideslipSwipeInteractiveTransitionFinishedDelegate.h"
@interface YourViewController () <ACSideslipSwipeInteractiveTransitionFinishedDelegate>
...
#pragma mark - ACSideslipSwipeInteractiveTransitionFinishedDelegate
- (void)swipeInteractiveTransitionDidFinished
{
NSLog(@"dismissed by gesture");
}
- ARC
- iOS 7 +
- option for swipe from left edge or full viewController.view