Skip to content

Commit 14b470a

Browse files
committed
readme
1 parent ee18ab0 commit 14b470a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ ZFWKWebVC *web = [[ZFWKWebVC alloc] initWithDefaultConfig];
4444
### Custom Config
4545
Subclass config from `ZFWKWebVCConf`
4646
```
47+
@interface ZFWKUserDefaultConf : ZFWKWebVCConf
48+
ZFWKUserDefaultConf *userConf = [[ZFWKUserDefaultConf alloc] init];
4749
ZFWKWebVC *web = [[ZFWKWebVC alloc] initWithConf:userConf];
4850
```
4951
### Register js or event with config

sample/ZFWKWebView/ViewController.m

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,7 @@ - (void)temp {
5858
- (void)buttonClicked:(UIButton *)button {
5959
if (button.tag == 1) {
6060
ZFWKUserDefaultConf *userConf = [[ZFWKUserDefaultConf alloc] init];
61-
6261
ZFWKWebVC *web = [[ZFWKWebVC alloc] initWithConf:userConf];
63-
6462
[self.navigationController pushViewController:web animated:YES];
6563

6664
} else {

0 commit comments

Comments
 (0)