BasicViewController.h 1.0 KB

123456789101112131415161718192021222324252627282930313233343536
  1. //
  2. // BasicViewController.h
  3. // RA Image
  4. //
  5. // Created by Jack on 2017/4/27.
  6. // Copyright © 2017年 USAI. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. #import "const.h"
  10. #import "config.h"
  11. #import "RANetwork.h"
  12. #import "AppDelegate.h"
  13. #import "RAUtils.h"
  14. #import "JLKeyboardListener.h"
  15. extern NSString *const LogoutNotification;
  16. @interface BasicViewController : UIViewController<JLKeyboardListenerDelegate>
  17. #pragma mark - Property
  18. @property (nonatomic,weak) UIView *currentFirstResponder;
  19. @property (nonatomic,strong,readonly) NSNotificationCenter *notificationCenter;
  20. #pragma mark - Method
  21. - (id)userDefaultsValue:(NSString *)key;
  22. - (void)setUserDefaultsValue:(id)value forKey:(NSString *)key;
  23. - (void)userLogout:(NSNotification *)notification;
  24. - (UIViewController *)viewControllerInStoryboard:(NSString *)storyboard withId:(NSString *)storyboardId;
  25. - (void)tapResignFirstResponder:(UITapGestureRecognizer *)tap;
  26. - (void)removeFirstResponderTap;
  27. - (void)registListenKeyboard;
  28. - (void)startListenKeyboard;
  29. - (void)stopListenKeyboard;
  30. @end