Newer
Older
XinYang_IOS / XYSW / BaseViewController / YHBaseNavigationController.h
@zhangfeng zhangfeng on 7 Dec 2023 1 KB 1.8.0
//
//  YHBaseNavigationController.h
//  YHScrollView_Test
//
//  Created by Jim on 2021/9/4.
//

#import <UIKit/UIKit.h>

@class BaseNavigationController;

typedef NS_ENUM(NSInteger, AnimationType) {
    AnimationTypeFade = 1,                   //淡入淡出
    AnimationTypePush,                       //推挤
    AnimationTypeReveal,                     //揭开
    AnimationTypeMoveIn,                     //覆盖
    AnimationTypeCube,                       //立方体
    AnimationTypeSuckEffect,                 //吮吸
    AnimationTypeOglFlip,                    //翻转
    AnimationTypeRippleEffect,               //波纹
    AnimationTypePageCurl,                   //翻页
    AnimationTypePageUnCurl,                 //反翻页
    AnimationTypeCameraIrisHollowOpen,       //开镜头
    AnimationTypeCameraIrisHollowClose,      //关镜头
};

typedef NS_ENUM(NSInteger, AnimationSubtype) {
    AnimationSubtypeLeft,   //从左
    AnimationSubtypeBottom, //从下
    AnimationSubtypeRight,  //从右
    AnimationSubtypeTop     // 从上
};


NS_ASSUME_NONNULL_BEGIN

@interface YHBaseNavigationController : UINavigationController<UIGestureRecognizerDelegate,UINavigationControllerDelegate>

+ (void)pushViewController:(UIViewController *)viewController hiddenBottomWhenPush:(BOOL)hiddenBottomWhenPush animation:(BOOL)animation fromNavigation:(UINavigationController *)navi;

#pragma CATransition动画实现
- (void)Fish_navigationTransitionWithType:(AnimationType)type subtype:(AnimationSubtype) subtype;

@property (nonatomic,strong)UIImageView *bottomView;
-(void)hiddenBottomView:(BOOL)show;

@end

NS_ASSUME_NONNULL_END