Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ To use a WebViewJavascriptBridge in your own project:
responseCallback(@"Right back atcha");
}];

Please note that you need to save the instance of the bridge to a variable that does not goes out of scope (an instance variable in your ViewController e.g.). Otherwise the bridge will be garbage collected.

4) Go ahead and send some messages from ObjC to javascript:

[bridge send:@"Well hello there"];
Expand Down