[英]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.