STBaseViewC.h 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. //
  2. // STBaseViewC.h
  3. // BuguLive
  4. //
  5. // Created by 岳克奎 on 17/4/17.
  6. // Copyright © 2017年 xfg. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. #import "IQKeyboardManager.h"
  10. #import "STRefresh.h"
  11. #pragma mark - Transition Type
  12. /*
  13. typedef NS_ENUM(NSUInteger, STViewCTransitionType) {
  14. STViewCTransitionTypeOfPush = 0, // psuh
  15. STViewCTransitionTypeOfModal = 1, // Model
  16. STViewCTransitionOfChild = 2, // addSubView/aadChildViewC
  17. };*/
  18. @interface STBaseViewC : UIViewController
  19. @property(nonatomic,strong) UIViewController *recordSuperViewC;
  20. @property (nonatomic, strong)UITabBarController *recordTabBarC;
  21. @property(nonatomic,assign) STViewCTransitionType stViewCTransitionType;
  22. @property (nonatomic,assign) BOOL isOpenIQKeyboardManager;
  23. @property (nonatomic,strong) GlobalVariables *globalVariables;
  24. #pragma *************************** Plublic公有方法****************************
  25. #pragma mark --- newViewC < STBaseViewC *>
  26. /**
  27. * @brief: new ViewC methods
  28. *
  29. * @attention: 1. base class declaration 2.subclass implementation、
  30. */
  31. +(STBaseViewC *)showSTBaseViewCOnSuperViewC:(UIViewController *)superViewC
  32. andFrameRect:(CGRect)frameRect
  33. andSTViewCTransitionType:(STViewCTransitionType)stViewCTransitionType
  34. andComplete:(void(^)(BOOL finished,STBaseViewC *stBaseViewC))block;
  35. @end