RQCustomWebViewViewController.h 817 B

123456789101112131415161718192021222324252627282930313233343536
  1. //
  2. // RQCustomWebViewViewController.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. WebTypeAd = 3,
  15. };
  16. @interface RQCustomWebViewViewController : 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, copy) NSArray *bodyDicArr;
  23. @property (assign, readwrite, nonatomic) WebType webType;
  24. @end