Skip to content

Commit

Permalink
fix #29
Browse files Browse the repository at this point in the history
  • Loading branch information
duwen committed Feb 26, 2018
1 parent 6190b94 commit 4cc9bf4
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 1 deletion.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,12 @@ Note That the default dialog box implemented by DSBridge is modal. This will bl



# WKUIDelegate

In `DWKWebView ` , please use ` DSUIDelegate` instead of `UIDelegate` , because `UIDelegate` has already been set inner `DWKWebView ` , `DSUIDelegate` is a proxy of `UIDelegate` .



## API Reference

### Object-C API
Expand Down
2 changes: 1 addition & 1 deletion dsBridge.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Pod::Spec.new do |s|
#

s.name = "dsBridge"
s.version = "3.0.1"
s.version = "3.0.2"
s.summary = "An ios bridge for calling functions synchronously and asynchronously between JavaScript and Object-C in WKWebView/UIWebView"

# This description is used to generate tags and improve search results.
Expand Down
1 change: 1 addition & 0 deletions dsbridgedemo/ViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ - (void)viewDidLoad {
[dwebview callHandler:@"addValue" arguments:@[@3,@4] completionHandler:^(NSNumber * value){
NSLog(@"%@",value);
}];


[dwebview callHandler:@"append" arguments:@[@"I",@"love",@"you"] completionHandler:^(NSString * _Nullable value) {
NSLog(@"call succeed, append string is: %@",value);
Expand Down
6 changes: 6 additions & 0 deletions readme-chs.md
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,12 @@ DSBridge已经实现了 Javascript的弹出框函数(alert/confirm/prompt),这



# WKUIDelegate

`DWKWebView ` 中,请使用` DSUIDelegate` 代替 `UIDelegate` , 因为在`DWKWebView ` 内部 `UIDelegate`已经设置过了,而 `DSUIDelegate` 正是 `UIDelegate` 的一个代理。



## API 列表

### Object-C API
Expand Down

0 comments on commit 4cc9bf4

Please sign in to comment.