简体   繁体   English

如何为iOS / Android创建Web视图?

[英]How to create a web-view for iOS/Android?

I am in the process of creating an interactive pie-chart that works on Android and iOS. 我正在创建一个可在Android和iOS上运行的交互式饼图。 I have the pie chart in the [following link] 1 which works on browser. 我在[following link] 1中有饼图,该饼图可在浏览器上使用。 Please help me to create a web-view for it that works on both platforms properly. 请帮助我为它创建一个可以在两个平台上正常工作的网络视图。

You can add a WebView using the following code on ios platform: 您可以在ios平台上使用以下代码添加WebView:

      NSString *fullURL = @"Url";//Replace url with your own html page url
      NSURL *url = [NSURL URLWithString:fullURL];
      NSURLRequest *requestObj = [NSURLRequest requestWithURL:url];
      [webView loadRequest:requestObj];
      [self.view addSubview:webView];

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何在网络视图内访问Android应用程序的本地文件 - how to access local files of android app inside a web-view Android键盘替换Web视图 - Android Keyboard Replacement Web-view 如何通过在Android Web View Phonegap构建中按软键盘中的Enter进入下一个输入 - How to go to next input by pressing enter in soft keyboard in android web-view phonegap build Android Web-View:将本地Javascript文件注入远程网页 - Android Web-View : Inject local Javascript file to Remote Webpage 如何在浏览器而不是Web视图中强制打开链接 - How to forcefully open a link in browser rather than in web-view Android EPSON热点打印来自网页视图的数据点击?如果找不到打印机? - Android EPSON thermal Print data from web-view on click?If Printer Not Found? 为什么我在vue.js的android网络视图中看到此错误 - Why do I see this error in android web-view in vue.js Android Web 视图错误 I/chromium: [INFO:CONSOLE(1)] "Uncaught ReferenceError: - Android Web-view Error I/chromium: [INFO:CONSOLE(1)] "Uncaught ReferenceError: 从微信小程序发送消息到网页视图 - Send message from WeChat mini-program to web-view 如何在 react-native (web/android/ios) 中的图像上创建链接? - How to create a link on an image in react-native (web/android/ios)?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM