UINavigationController+EndEditing.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. //
  2. // UINavigationController+EndEditing.h
  3. // 乐销
  4. //
  5. // Created by 隋林栋 on 2017/2/20.
  6. // Copyright © 2017年 ping. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. @interface UINavigationController (EndEditing)
  10. #pragma mark property
  11. @property (nonatomic,readonly) UIViewController * lastVC;
  12. @property (nonatomic,readonly) UIViewController * lastSecondVC;
  13. #pragma mark login method
  14. //跳转多个vc
  15. - (void)jumpToAry:(NSArray *)aryVCs;
  16. //跳转多个vc
  17. - (void)jumpToAry:(NSArray *)aryVCs animate:(BOOL)animated;
  18. //返回最后一个然后push vc
  19. - (void)popLastAndPushVC:(UIViewController *)vc;
  20. //返回最后一个然后pop vc
  21. - (void)popLastAndPopVC:(UIViewController *)vc;
  22. //往回调很多vc
  23. - (void)popMultiVC:(NSInteger)num;
  24. //跳转到之前的 vc类型
  25. - (void)popToClass:(NSString *)className;
  26. //根据名称跳转
  27. - (void)pushVCName:(NSString *)strClassName animated:(BOOL)animated;
  28. //跳转回root 然后跳转多个vc
  29. - (void)popToRootAry:(NSArray *)aryVCs animate:(BOOL)animated;
  30. #pragma business method
  31. //跳转详情
  32. - (void)jumpToDetailVC:(NSString *)strBsort sSort:(NSString *)strSsort identify:(NSString *)identify;
  33. - (void)jumpToDetailVC:(NSString *)strSsort;
  34. @end