Git Product home page Git Product logo

Comments (5)

marcuswestin avatar marcuswestin commented on June 20, 2024

Hi Kalvin,

I'm getting married Sunday and am in the thick of things :) will be happy to help this time of next week if your remind me but in the meantime I'll have to defer to other contributors and the source code. Please ping them if you are in a rush. Sorry!

Cheers,
Marcus

-- while mobile

On Nov 28, 2012, at 2:28 PM, kagster [email protected] wrote:

Hi,

I ran the example code for iPhone 5.1 Simulator and everything works fine.

I'm using Xcode 4.4 with the storyboard and I already have a UIWebView. I pasted this code from the example usage into the viewDidLoad event

WebViewJavascriptBridge* bridge = [WebViewJavascriptBridge bridgeForWebView:webView handler:^(id data, WVJBResponse* response) {
NSLog(@"Received message from javascript: %@", data);
[response respondWith:@"Right back atcha"];
// or [response respondWithError:]
}];

but got this error "no known class for selector 'bridgeForWebView'

Did I do something wrong or can I not use it in the manner? Any suggestion on how to use this appropriately in my case?

Thanks for your help,
Kalvin


Reply to this email directly or view it on GitHub.

from webviewjavascriptbridge.

pj4533 avatar pj4533 commented on June 20, 2024

👍 Congrats Marcus!

from webviewjavascriptbridge.

marcuswestin avatar marcuswestin commented on June 20, 2024

Thanks PJ :)

-- while mobile

On Nov 29, 2012, at 3:48 PM, PJ Gray [email protected] wrote:

Congrats Marcus!


Reply to this email directly or view it on GitHub.

from webviewjavascriptbridge.

marcuswestin avatar marcuswestin commented on June 20, 2024

@kagster, remember to #import "WebViewJavascriptBridge.h" first!

I just made some changes to the API, so if you haven't started using WVJB yet update it and then do:

#import "WebViewJavascriptBridge.h"

...

WebViewJavascriptBridge* bridge = [WebViewJavascriptBridge bridgeForWebView:webView handler:^(id data, WVJBResponseCallback responseCallback) {
    NSLog(@"Received message from javascript: %@", data);
    responseCallback(@"Right back atcha");
}];

from webviewjavascriptbridge.

kagster avatar kagster commented on June 20, 2024

Marcus,

Thanks for the update. I will test it and let you know.

Kalvin

from webviewjavascriptbridge.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.