Nessuna descrizione

FLControllerHelper.h 1.1KB

12345678910111213141516171819202122232425262728293031323334353637
  1. //
  2. // FLPushViewControllerHelper.h
  3. // FirstLink
  4. //
  5. // Created by unicode on 14-9-26.
  6. // Copyright (c) 2014年 FirstLink. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. typedef void(^completion)(void);
  10. @interface FLControllerHelper : NSObject
  11. +(void)presentLoginViewController;
  12. +(void)dismissLoginViewController;
  13. +(void)presentLoginControllerAnimated:(BOOL)animated completion:(completion)completion;
  14. +(void)dismissLoginControllerAnimated:(BOOL)animated completion:(completion)completion;
  15. +(void)launchAppCamera:(UIViewController<UIImagePickerControllerDelegate, UINavigationControllerDelegate>*)viewController
  16. type:(UIImagePickerControllerSourceType)type;
  17. +(FLViewController*)currentController;
  18. +(UINavigationController *)currentNavigationController;
  19. +(NSArray<FLViewController *> *)currentControllers;
  20. +(UITabBarController*)currentTabBarController;
  21. +(void)selectTabbarControllerAtIndex:(NSInteger)index;
  22. +(UIStoryboard*)currentStoryBoard;
  23. + (void)backToMainController;
  24. + (void)backToOrderListController; // 回到我的订单
  25. + (BOOL)isShowingLoginNavigationController;
  26. @end