RQWebViewViewController.h 864 B

12345678910111213141516171819202122232425262728293031323334
  1. //
  2. // RQWebViewViewController.h
  3. // RQCommon
  4. //
  5. // Created by 张嵘 on 2018/11/27.
  6. // Copyright © 2018 张嵘. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. #import <WebKit/WebKit.h>
  10. typedef NS_ENUM(NSUInteger, WebType) {
  11. WebTypeDefault = 0,
  12. WebTypeEDU = 1,
  13. WebTypeStuProtocol = 2,
  14. WebTypeStuLearnBook = 3,
  15. };
  16. @interface RQWebViewViewController : UIViewController <WKNavigationDelegate, WKUIDelegate, WKScriptMessageHandler>
  17. /// webView
  18. @property (nonatomic, weak, readonly) WKWebView *webView;
  19. /// 内容缩进 (64,0,0,0)
  20. @property (nonatomic, readonly, assign) UIEdgeInsets contentInset;
  21. @property (nonatomic, readwrite, strong) NSString *url;
  22. @property (nonatomic, readwrite, strong) NSString *titleStr;
  23. @property (nonatomic, readwrite, strong) NSString *countStr;
  24. @property (assign, readwrite, nonatomic) WebType webType;
  25. @end