Skip to content

Commit d9bd0fc

Browse files
committed
Update README.md
1 parent c3d2665 commit d9bd0fc

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

README.md

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,19 +35,22 @@ Alternatively you can directly add the `ZFWKWebView.h` and `ZFWKWebView.m` sourc
3535

3636
## Usage
3737

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+
4439
### Custom Config
4540
Subclass config from `ZFWKWebVCConf`
4641
```
4742
@interface ZFWKUserDefaultConf : ZFWKWebVCConf
4843
ZFWKUserDefaultConf *userConf = [[ZFWKUserDefaultConf alloc] init];
4944
ZFWKWebVC *web = [[ZFWKWebVC alloc] initWithConf:userConf];
5045
```
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+
5154
### Register js or event with config
5255
Body is serialization response
5356
```

0 commit comments

Comments
 (0)