AppDelegate.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. //
  2. // AppDelegate.h
  3. // KulexiuForStudent
  4. //
  5. // Created by Kyle on 2022/3/16.
  6. //
  7. #import <UIKit/UIKit.h>
  8. #import "LoginViewController.h"
  9. #import "CustomNavViewController.h"
  10. #import "CustomTabBarController.h"
  11. #import <HTTPServer.h>
  12. @interface AppDelegate : UIResponder <UIApplicationDelegate>
  13. @property (nonatomic, strong) NSData *deviceToken;
  14. @property (strong, nonatomic) UIWindow *window;
  15. @property (nonatomic, strong) CustomTabBarController *tabBarController;
  16. //记录当前界面是否支持横竖屏旋转
  17. @property (assign, nonatomic)BOOL allowAutoRotate;
  18. @property (nonatomic, assign) BOOL isShowMemoAlert;
  19. @property (nonatomic, assign) BOOL isShowFlashAlert; // 是否显示首页 news alert
  20. @property (nonatomic, strong) NSMutableDictionary *outLinkParm;
  21. /**本地服务器*/
  22. @property (strong, nonatomic) HTTPServer *httpServer;
  23. /**是否启动了本地服务器*/
  24. @property(nonatomic,assign)BOOL isServiceStart;
  25. @property (nonatomic, strong) NSString *serverPort;
  26. @property (nonatomic, strong) NSMutableDictionary *messageDict;
  27. - (void)showMemoAlert;
  28. - (void)initTableBar;
  29. - (void)appTrackActionAuth;
  30. - (void)initLoginView;
  31. - (void)handleNotiferSource;
  32. - (void)displayUnreadMessageCount;
  33. - (void)noteIMNewsCount:(NSInteger)count;
  34. - (void)clearIMNewsCount;
  35. - (void)refreshThemeColorAndConfig;
  36. @end