UIWindow+JKHierarchy.h 566 B

12345678910111213141516171819202122232425
  1. //
  2. // UIWindow+JKHierarchy.h
  3. // JKCategories (https://github.com/shaojiankui/JKCategories)
  4. //
  5. // Created by Jakey on 15/1/16.
  6. // Copyright (c) 2015年 www.skyfox.org. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. @interface UIWindow (JKHierarchy)
  10. /*!
  11. @method topMostController
  12. @return Returns the current Top Most ViewController in hierarchy.
  13. */
  14. - (UIViewController*)jk_topMostController;
  15. /*!
  16. @method currentViewController
  17. @return Returns the topViewController in stack of topMostController.
  18. */
  19. - (UIViewController*)jk_currentViewController;
  20. @end