1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- //
- // JXNavigation.h
- // shiku_im
- //
- // Created by p on 2017/12/1.
- // Copyright © 2017年 Reese. All rights reserved.
- //
- #import <Foundation/Foundation.h>
- //@interface JXNavigation : NSObject
- @interface JXNavigation : UIView
- // 页面进出总栈
- @property (nonatomic, strong) NSMutableArray *subViews;
- // 当前页面控制器的上一个控制器
- @property (nonatomic, strong) UIViewController *lastVC;
- // 根视图
- @property (nonatomic, strong) UIViewController *rootViewController;
- // window上的第一层总view,页面都将加在navigationView上,
- // 其他如loading符类似需显示在上方的view可以加在window上面,
- // 这样可以不受页面进出动画影响
- @property (nonatomic, strong) UIView *navigationView;
- +(JXNavigation*)sharedInstance;
- - (instancetype)init;
- - (void)applicationWillResignActive;
- // 边缘手势
- - (void)screenEdgePanGestureRecognizer:(UIViewController *)viewController;
- // 入栈
- - (void)pushViewController:(UIViewController *)viewController animated:(BOOL)animated;
- // 出栈
- - (void)dismissViewController:(UIViewController *)viewController animated:(BOOL)animated;
- // 跳转根视图
- - (void)popToRootViewController;
- // 指定的单个控制器回跳(只能跳转subViews中的VC)
- - (void)popToViewController:(Class)viewController animated:(BOOL)animated;
- // 重置frame
- - (void)resetVCFrame;
- @end
|