You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+17-16Lines changed: 17 additions & 16 deletions
Original file line number
Diff line number
Diff line change
@@ -3,8 +3,6 @@ WebViewJavascriptBridge
3
3
4
4
An iOS/OSX bridge for sending messages between Obj-C and JavaScript in UIWebViews/WebViews.
5
5
6
-
If you like WebViewJavascriptBridge you may also want to check out [WebViewProxy](https://github.com/marcuswestin/WebViewProxy).
7
-
8
6
In the Wild
9
7
-----------
10
8
WebViewJavascriptBridge is used by a range of companies and projects. This list is incomplete, but feel free to add your's and send a PR.
@@ -23,30 +21,33 @@ WebViewJavascriptBridge is used by a range of companies and projects. This list
23
21
-[Hemlig](http://www.hemlig.co)
24
22
-[FRIL](https://fril.jp)
25
23
26
-
Setup & Examples (iOS & OSX)
27
-
----------------------------
24
+
Installation (iOS & OSX)
25
+
------------------------
28
26
29
27
### Installation with CocoaPods
28
+
Add this to your [podfile](https://guides.cocoapods.org/using/getting-started.html) and run `pod install` to install:
30
29
31
-
[CocoaPods](http://cocoapods.org) is a dependency manager for Objective-C, which automates and simplifies the process of using 3rd-party libraries like WebViewJavascriptBridge in your projects. See the following [Getting Started](https://guides.cocoapods.org/using/getting-started.html) page for CocoaPods for more information.
32
-
33
-
#### Podfile
34
-
Add the following to your podfile to add this library to your project. Run `pod install` to install them afterwards.
35
30
```ruby
36
31
`pod 'WebViewJavascriptBridge', '~> 4.1.4'`
37
32
```
38
33
39
-
## Other Usage
34
+
### Manual installation
35
+
36
+
Drag the `WebViewJavascriptBridge` folder into your project.
37
+
38
+
In the dialog that appears, uncheck "Copy items into destination group's folder" and select "Create groups for any folders".
39
+
40
+
Examples
41
+
--------
40
42
41
-
Start with the Example Apps/ folder. Open either the iOS or OSX project and hit run to see it in action.
43
+
See the `Example Apps/` folder. Open either the iOS or OSX project and hit run to see it in action.
42
44
43
45
To use a WebViewJavascriptBridge in your own project:
44
46
45
-
1) Drag the `WebViewJavascriptBridge` folder into your project.
47
+
Usage
48
+
-----
46
49
47
-
- In the dialog that appears, uncheck "Copy items into destination group's folder" and select "Create groups for any folders"
48
-
49
-
2) Import the header file and declare an ivar property:
50
+
1) Import the header file and declare an ivar property:
50
51
51
52
```objc
52
53
#import"WebViewJavascriptBridge.h"
@@ -58,7 +59,7 @@ To use a WebViewJavascriptBridge in your own project:
58
59
@property WebViewJavascriptBridge* bridge;
59
60
```
60
61
61
-
3) Instantiate WebViewJavascriptBridge with a UIWebView (iOS) or WebView (OSX):
62
+
2) Instantiate WebViewJavascriptBridge with a UIWebView (iOS) or WebView (OSX):
0 commit comments