Submit Search
Upload
Javascript call ObjC
•
2 likes
•
991 views
Lin Luxiang
Follow
A way of calling objc function from js in UIWebView.
Read less
Read more
Report
Share
Report
Share
1 of 44
Download now
Download to read offline
Recommended
Working with AFNetworking
Working with AFNetworking
waynehartman
Everybody Loves AFNetworking ... and So Can you!
Everybody Loves AFNetworking ... and So Can you!
jeffsoto
Web Crawling with NodeJS
Web Crawling with NodeJS
Sylvain Zimmer
Postman On Steroids
Postman On Steroids
Sara Tornincasa
async/await in Swift
async/await in Swift
Peter Friese
History of jQuery
History of jQuery
jeresig
ES6 is Nigh
ES6 is Nigh
Domenic Denicola
Asynchronous programming done right - Node.js
Asynchronous programming done right - Node.js
Piotr Pelczar
Recommended
Working with AFNetworking
Working with AFNetworking
waynehartman
Everybody Loves AFNetworking ... and So Can you!
Everybody Loves AFNetworking ... and So Can you!
jeffsoto
Web Crawling with NodeJS
Web Crawling with NodeJS
Sylvain Zimmer
Postman On Steroids
Postman On Steroids
Sara Tornincasa
async/await in Swift
async/await in Swift
Peter Friese
History of jQuery
History of jQuery
jeresig
ES6 is Nigh
ES6 is Nigh
Domenic Denicola
Asynchronous programming done right - Node.js
Asynchronous programming done right - Node.js
Piotr Pelczar
The Promised Land (in Angular)
The Promised Land (in Angular)
Domenic Denicola
Python Code Camp for Professionals 2/4
Python Code Camp for Professionals 2/4
DEVCON
What happens in laravel 4 bootstraping
What happens in laravel 4 bootstraping
Jace Ju
TDD of HTTP Clients With WebMock
TDD of HTTP Clients With WebMock
Bartosz Blimke
Webエンジニアから見たiOS5
Webエンジニアから見たiOS5
Satoshi Asano
The Beauty Of Java Script V5a
The Beauty Of Java Script V5a
rajivmordani
The Beauty of Java Script
The Beauty of Java Script
Michael Girouard
"Service Worker: Let Your Web App Feel Like a Native "
"Service Worker: Let Your Web App Feel Like a Native "
FDConf
Testing http calls with Webmock and VCR
Testing http calls with Webmock and VCR
Kerry Buckley
An Introduction to Tornado
An Introduction to Tornado
Gavin Roy
Grails 1.2 探検隊 -新たな聖杯をもとめて・・・-
Grails 1.2 探検隊 -新たな聖杯をもとめて・・・-
Tsuyoshi Yamamoto
Stubる - Mockingjayを使ったHTTPクライアントのテスト -
Stubる - Mockingjayを使ったHTTPクライアントのテスト -
Kenji Tanaka
Python Code Camp for Professionals 1/4
Python Code Camp for Professionals 1/4
DEVCON
Security Challenges in Node.js
Security Challenges in Node.js
Websecurify
Client server part 12
Client server part 12
fadlihulopi
Nevermore Unit Testing
Nevermore Unit Testing
Ihsan Fauzi Rahman
Node worshop Realtime - Socket.io
Node worshop Realtime - Socket.io
Caesar Chi
Introduction to Nodejs
Introduction to Nodejs
Gabriele Lana
HTML5 APIs - Where no man has gone before! - Altran
HTML5 APIs - Where no man has gone before! - Altran
Robert Nyman
Asynchronous I/O in PHP
Asynchronous I/O in PHP
Thomas Weinert
UIWebView Tips
UIWebView Tips
Katsumi Kishikawa
Gdg dev fest hybrid apps your own mini-cordova
Gdg dev fest hybrid apps your own mini-cordova
Ayman Mahfouz
More Related Content
What's hot
The Promised Land (in Angular)
The Promised Land (in Angular)
Domenic Denicola
Python Code Camp for Professionals 2/4
Python Code Camp for Professionals 2/4
DEVCON
What happens in laravel 4 bootstraping
What happens in laravel 4 bootstraping
Jace Ju
TDD of HTTP Clients With WebMock
TDD of HTTP Clients With WebMock
Bartosz Blimke
Webエンジニアから見たiOS5
Webエンジニアから見たiOS5
Satoshi Asano
The Beauty Of Java Script V5a
The Beauty Of Java Script V5a
rajivmordani
The Beauty of Java Script
The Beauty of Java Script
Michael Girouard
"Service Worker: Let Your Web App Feel Like a Native "
"Service Worker: Let Your Web App Feel Like a Native "
FDConf
Testing http calls with Webmock and VCR
Testing http calls with Webmock and VCR
Kerry Buckley
An Introduction to Tornado
An Introduction to Tornado
Gavin Roy
Grails 1.2 探検隊 -新たな聖杯をもとめて・・・-
Grails 1.2 探検隊 -新たな聖杯をもとめて・・・-
Tsuyoshi Yamamoto
Stubる - Mockingjayを使ったHTTPクライアントのテスト -
Stubる - Mockingjayを使ったHTTPクライアントのテスト -
Kenji Tanaka
Python Code Camp for Professionals 1/4
Python Code Camp for Professionals 1/4
DEVCON
Security Challenges in Node.js
Security Challenges in Node.js
Websecurify
Client server part 12
Client server part 12
fadlihulopi
Nevermore Unit Testing
Nevermore Unit Testing
Ihsan Fauzi Rahman
Node worshop Realtime - Socket.io
Node worshop Realtime - Socket.io
Caesar Chi
Introduction to Nodejs
Introduction to Nodejs
Gabriele Lana
HTML5 APIs - Where no man has gone before! - Altran
HTML5 APIs - Where no man has gone before! - Altran
Robert Nyman
Asynchronous I/O in PHP
Asynchronous I/O in PHP
Thomas Weinert
What's hot
(20)
The Promised Land (in Angular)
The Promised Land (in Angular)
Python Code Camp for Professionals 2/4
Python Code Camp for Professionals 2/4
What happens in laravel 4 bootstraping
What happens in laravel 4 bootstraping
TDD of HTTP Clients With WebMock
TDD of HTTP Clients With WebMock
Webエンジニアから見たiOS5
Webエンジニアから見たiOS5
The Beauty Of Java Script V5a
The Beauty Of Java Script V5a
The Beauty of Java Script
The Beauty of Java Script
"Service Worker: Let Your Web App Feel Like a Native "
"Service Worker: Let Your Web App Feel Like a Native "
Testing http calls with Webmock and VCR
Testing http calls with Webmock and VCR
An Introduction to Tornado
An Introduction to Tornado
Grails 1.2 探検隊 -新たな聖杯をもとめて・・・-
Grails 1.2 探検隊 -新たな聖杯をもとめて・・・-
Stubる - Mockingjayを使ったHTTPクライアントのテスト -
Stubる - Mockingjayを使ったHTTPクライアントのテスト -
Python Code Camp for Professionals 1/4
Python Code Camp for Professionals 1/4
Security Challenges in Node.js
Security Challenges in Node.js
Client server part 12
Client server part 12
Nevermore Unit Testing
Nevermore Unit Testing
Node worshop Realtime - Socket.io
Node worshop Realtime - Socket.io
Introduction to Nodejs
Introduction to Nodejs
HTML5 APIs - Where no man has gone before! - Altran
HTML5 APIs - Where no man has gone before! - Altran
Asynchronous I/O in PHP
Asynchronous I/O in PHP
Similar to Javascript call ObjC
UIWebView Tips
UIWebView Tips
Katsumi Kishikawa
Gdg dev fest hybrid apps your own mini-cordova
Gdg dev fest hybrid apps your own mini-cordova
Ayman Mahfouz
Hybrid apps - Your own mini Cordova
Hybrid apps - Your own mini Cordova
Ayman Mahfouz
Flask and Angular: An approach to build robust platforms
Flask and Angular: An approach to build robust platforms
Ayush Sharma
React native by example by Vadim Ruban
React native by example by Vadim Ruban
Lohika_Odessa_TechTalks
125 고성능 web view-deview 2013 발표 자료_공유용
125 고성능 web view-deview 2013 발표 자료_공유용
NAVER D2
PhoneGap_Javakuche0612
PhoneGap_Javakuche0612
Yuhei Miyazato
Writing JavaScript for C# Blazor.pptx
Writing JavaScript for C# Blazor.pptx
Ed Charbeneau
A portlet-API based approach for application integration
A portlet-API based approach for application integration
whabicht
Intro to Sail.js
Intro to Sail.js
Nicholas McClay
JavaScript Web Development
JavaScript Web Development
vito jeng
Scripting GeoServer
Scripting GeoServer
Jared Erickson
Orbitz and Spring Webflow Case Study
Orbitz and Spring Webflow Case Study
Mark Meeker
Finch.io - Purely Functional REST API with Finagle
Finch.io - Purely Functional REST API with Finagle
Vladimir Kostyukov
[22]Efficient and Testable MVVM pattern
[22]Efficient and Testable MVVM pattern
NAVER Engineering
Quickly function add by Eclipse Monkey
Quickly function add by Eclipse Monkey
bose999
Lift 2 0
Lift 2 0
SO
Server Side Swift: Vapor
Server Side Swift: Vapor
Paweł Kowalczuk
The Open Web and what it means
The Open Web and what it means
Robert Nyman
5.node js
5.node js
Geunhyung Kim
Similar to Javascript call ObjC
(20)
UIWebView Tips
UIWebView Tips
Gdg dev fest hybrid apps your own mini-cordova
Gdg dev fest hybrid apps your own mini-cordova
Hybrid apps - Your own mini Cordova
Hybrid apps - Your own mini Cordova
Flask and Angular: An approach to build robust platforms
Flask and Angular: An approach to build robust platforms
React native by example by Vadim Ruban
React native by example by Vadim Ruban
125 고성능 web view-deview 2013 발표 자료_공유용
125 고성능 web view-deview 2013 발표 자료_공유용
PhoneGap_Javakuche0612
PhoneGap_Javakuche0612
Writing JavaScript for C# Blazor.pptx
Writing JavaScript for C# Blazor.pptx
A portlet-API based approach for application integration
A portlet-API based approach for application integration
Intro to Sail.js
Intro to Sail.js
JavaScript Web Development
JavaScript Web Development
Scripting GeoServer
Scripting GeoServer
Orbitz and Spring Webflow Case Study
Orbitz and Spring Webflow Case Study
Finch.io - Purely Functional REST API with Finagle
Finch.io - Purely Functional REST API with Finagle
[22]Efficient and Testable MVVM pattern
[22]Efficient and Testable MVVM pattern
Quickly function add by Eclipse Monkey
Quickly function add by Eclipse Monkey
Lift 2 0
Lift 2 0
Server Side Swift: Vapor
Server Side Swift: Vapor
The Open Web and what it means
The Open Web and what it means
5.node js
5.node js
Javascript call ObjC
1.
iOS dev HACK!
JS ObjC linluxiang@gmail.com
2.
3.
HTML
4.
HTML JS
Objc
5.
HTML JS
Objc UIWebView
6.
7.
JS Global
8.
JS Global - (void)webView:(id)sender
didClearWindowObject:(id) windowObject forFrame:(WebFrame*)frame {
9.
JS Global
- (void)webView:(id)sender didClearWindowObject:(id) windowObject forFrame:(WebFrame*)frame { ! [windowObject setValue:localcall forKey:@"localcall"];
10.
JS Global
- (void)webView:(id)sender didClearWindowObject:(id) windowObject forFrame:(WebFrame*)frame { ! [windowObject setValue:localcall forKey:@"localcall"];
11.
JS Global
- (void)webView:(id)sender didClearWindowObject:(id) windowObject forFrame:(WebFrame*)frame { ! [windowObject setValue:localcall forKey:@"localcall"]; }
12.
JS Global
- (void)webView:(id)sender didClearWindowObject:(id) windowObject forFrame:(WebFrame*)frame { ! [windowObject setValue:localcall forKey:@"localcall"]; } + (BOOL)isSelectorExcludedFromWebScript:(SEL)aSelector
13.
JS Global
- (void)webView:(id)sender didClearWindowObject:(id) windowObject forFrame:(WebFrame*)frame { ! [windowObject setValue:localcall forKey:@"localcall"]; } + (BOOL)isSelectorExcludedFromWebScript:(SEL)aSelector + (BOOL)isKeyExcludedFromWebScript:(const char *)name
14.
JS Global
- (void)webView:(id)sender didClearWindowObject:(id) windowObject forFrame:(WebFrame*)frame { ! [windowObject setValue:localcall forKey:@"localcall"]; } + (BOOL)isSelectorExcludedFromWebScript:(SEL)aSelector + (BOOL)isKeyExcludedFromWebScript:(const char *)name
15.
JS Global
- (void)webView:(id)sender didClearWindowObject:(id) windowObject forFrame:(WebFrame*)frame { ! [windowObject setValue:localcall forKey:@"localcall"]; } + (BOOL)isSelectorExcludedFromWebScript:(SEL)aSelector + (BOOL)isKeyExcludedFromWebScript:(const char *)name
16.
17.
Apple
18.
Apple +
(BOOL)isSelectorExcludedFromWebScript: (SEL)aSelector aSelector
19.
20.
21.
22.
23.
24.
+ (BOOL)isKeyExcludedFromWebScript: (const char
*)name
25.
+ (BOOL)isKeyExcludedFromWebScript: (const char
*)name
26.
+ (BOOL)isKeyExcludedFromWebScript: (const char
*)name JS
27.
28.
RPC
29.
RPC
http://localcall/func_name? argument=”a_json_string”
30.
RPC
http://localcall/func_name? argument=”a_json_string”
31.
Ajax
32.
Ajax XMLHttpRequest
33.
Ajax XMLHttpRequest
34.
Ajax XMLHttpRequest
Cache
35.
Ajax
XMLHttpRequest Cache - (NSCachedURLResponse *)cachedResponseForRequest: (NSURLRequest *)request
36.
Callback
37.
Callback window.location.href
38.
Callback window.location.href
39.
Callback
window.location.href - (BOOL)webView:(UIWebView *)webView2 shouldStartLoadWithRequest:(NSURLRequest *)request navigationType:(UIWebViewNavigationType) navigationType
40.
Callback
window.location.href - (BOOL)webView:(UIWebView *)webView2 shouldStartLoadWithRequest:(NSURLRequest *)request navigationType:(UIWebViewNavigationType) navigationType [webview loadData]
41.
Callback
window.location.href - (BOOL)webView:(UIWebView *)webView2 shouldStartLoadWithRequest:(NSURLRequest *)request navigationType:(UIWebViewNavigationType) navigationType [webview loadData] - (NSString *)stringByEvaluatingJavaScriptFromString: (NSString *)script;
42.
Form Iframe Script
webview cache
43.
44.
Read The F**king
SourceCode. https://github.com/linluxiang/ JavascriptCallObjCExample
Download now