MOBFViewController.h 579 B

123456789101112131415161718192021222324252627282930313233
  1. //
  2. // MOBFViewControllerUtils.h
  3. // MOBFoundation
  4. //
  5. // Created by vimfung on 15-1-19.
  6. // Copyright (c) 2015年 MOB. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. #import <UIKit/UIKit.h>
  10. /**
  11. * 视图控制器工具类
  12. */
  13. @interface MOBFViewController : NSObject
  14. /**
  15. * 获取当前视图控制器
  16. *
  17. * @return 视图控制器
  18. */
  19. + (UIViewController *)currentViewController;
  20. /**
  21. * 获取当前视图控制器
  22. *
  23. * @param window 窗口
  24. *
  25. * @return 视图控制器
  26. */
  27. + (UIViewController *)currentViewControllerFromWindow:(UIWindow *)window;
  28. @end