40 lines
1014 B
Objective-C
40 lines
1014 B
Objective-C
//
|
|
// NTESNavigationAnimator.h
|
|
// NIM
|
|
//
|
|
// Created by chris on 16/1/31.
|
|
// Copyright © 2016年 Netease. All rights reserved.
|
|
//
|
|
|
|
#import <Foundation/Foundation.h>
|
|
|
|
typedef NS_ENUM(NSInteger, NTESNavigationAnimationType) {
|
|
NTESNavigationAnimationTypeNormal,
|
|
NTESNavigationAnimationTypeCross,
|
|
};
|
|
|
|
@class NTESNavigationAnimator;
|
|
|
|
@protocol NTESNavigationAnimatorDelegate <NSObject>
|
|
|
|
- (void)animationWillStart:(NTESNavigationAnimator *)animator;
|
|
|
|
- (void)animationDidEnd:(NTESNavigationAnimator *)animator;
|
|
|
|
@end
|
|
|
|
|
|
@interface NTESNavigationAnimator : NSObject <UIViewControllerAnimatedTransitioning>
|
|
|
|
@property (nonatomic,weak) UINavigationController *navigationController;
|
|
|
|
@property (nonatomic,assign) UINavigationControllerOperation currentOpearation;
|
|
|
|
@property (nonatomic,assign) NTESNavigationAnimationType animationType;
|
|
|
|
@property (nonatomic,weak) id<NTESNavigationAnimatorDelegate> delegate;
|
|
|
|
- (instancetype)initWithNavigationController:(UINavigationController *)navigationController;
|
|
|
|
@end
|