File tree Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -35,19 +35,22 @@ Alternatively you can directly add the `ZFWKWebView.h` and `ZFWKWebView.m` sourc
35
35
36
36
## Usage
37
37
38
- ### DefaultConfig
39
- ```
40
- ZFWKWebVC *web = [[ZFWKWebVC alloc] initWithDefaultConfig];
41
- [web.webView loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:@"https://www.apple.com.cn"]]];
42
- [self presentViewController:web animated:YES completion:nil];
43
- ```
38
+
44
39
### Custom Config
45
40
Subclass config from ` ZFWKWebVCConf `
46
41
```
47
42
@interface ZFWKUserDefaultConf : ZFWKWebVCConf
48
43
ZFWKUserDefaultConf *userConf = [[ZFWKUserDefaultConf alloc] init];
49
44
ZFWKWebVC *web = [[ZFWKWebVC alloc] initWithConf:userConf];
50
45
```
46
+
47
+ ### DefaultConfig
48
+ ```
49
+ ZFWKWebVC *web = [[ZFWKWebVC alloc] initWithDefaultConfig];
50
+ [web.webView loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:@"https://www.apple.com.cn"]]];
51
+ [self presentViewController:web animated:YES completion:nil];
52
+ ```
53
+
51
54
### Register js or event with config
52
55
Body is serialization response
53
56
```
You can’t perform that action at this time.
0 commit comments