YBBaseAppDelegate.h 901 B

1234567891011121314151617181920212223242526272829303132
  1. //
  2. // YBBaseAppDelegate.h
  3. // TCLVBIMDemo
  4. //
  5. // Created by annidyfeng on 16/7/29.
  6. // Copyright © 2016年 tencent. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. @interface YBBaseAppDelegate : UIResponder<UIApplicationDelegate>
  10. @property (strong, nonatomic) UIWindow *window;
  11. + (instancetype)sharedAppDelegate;
  12. - (UINavigationController *)navigationViewController;
  13. - (UIViewController *)topViewController;
  14. - (void)pushViewController:(UIViewController *)viewController animated:(BOOL)animated;
  15. - (NSArray *)popToViewController:(UIViewController *)viewController;
  16. - (UIViewController *)popViewController:(BOOL)animated;
  17. - (NSArray *)popToRootViewController;
  18. - (void)presentViewController:(UIViewController *)vc animated:(BOOL)animated completion:(void (^)())completion;
  19. - (void)dismissViewController:(UIViewController *)vc animated:(BOOL)animated completion:(void (^)())completion;
  20. @end