javascript - calling js from obj-c openfeint -


i can call js obj-c phonegap plugin classes , main app delegate class follows: [webview stringbyevaluatingjavascriptfromstring:@"alert('hello');"];

you can because webview object can handled phonegap plugin classes , phonegap main app delegate.

however integrating openfeint , has many of own classes. when try above code in openfeint delegate class doesn't work because openfeint delegate classes can't handle on webview object.

can tell me how this? i've tried messing class interfaces , importing .h files in various places nothing seems working. webview sitting there somewhere.

i hacker of obj-c opposed understands it.

i have gotten achievements , leaderboards working app. relatively straight forward. users can create , send new challenges.

but cannot users receive these challenges play them because of problem above (at least that's theory).

i'll share openfeint know how once problem sorted , release app.

cheers

nigel

i think can safely reduced problem simple one. passing webview object openfeint-classes, or may single super class. (i have never used openfeint , if isn't problem, please don't read further)

these 2 different questions on stackoverflow related sharing/passing variable among classes. there may more, , can search suits requirements on these lines.

passing variables through classes in objective-c

how pass variables between view controllers?


Comments

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -