How to make image maps clickable using UIWebview in iphone?

前端 未结 1 1879
借酒劲吻你
借酒劲吻你 2020-12-07 06:20

I am looking how to get \'one\' and \'park\' string value (which is image_map coordinates clickable spot on UIwebview\'s) onclick from HTML to iPHone native obj-c. I have pu

相关标签:
1条回答
  • 2020-12-07 06:46

    I am not sure what exactly you mean by "fetch from HTML". The most likely solution will be to use UIWebView javascript method: -(NSString*)stringByEvaluatingJavaScriptFromString:

    If you want to get the innerHTML from the tag with id 'test':

    NSString *innerHTML = [aWebview stringByEvaluatingJavaScriptFromString:@"document.getElementById('test').innerHTML"];
    
    0 讨论(0)
提交回复
热议问题