Reputation: 3780
I am loading a jqueryMobile html page into a webview. Is there any method to read a parameter set on html file in order to then execute native functions? how and where to set it? any help would be appreciated! Thank you
Upvotes: 1
Views: 613
Reputation: 14339
Let javascript do the work for you.
getParam()
stringByEvaluatingJavaScriptFromString:
method of UIWebView (upon webViewDidFinishLoad
)Eg:
-(void)webViewDidFinishLoad:(UIWebView *)webView {
NSString *param = [webView stringByEvaluatingJavaScriptFromString:@"getParam();"];
}
Upvotes: 3