【发布时间】:2016-10-12 20:32:09
【问题描述】:
网址是:-
http://1-dot-smartrefill-968.appspot.com/#/#mfucci@gmail_com
ATS 被禁用
我的代码如下:-
-(void)loadView
{
[super loadView];
self.view.backgroundColor=[UIColor blackColor];
self.webview = [[UIWebView alloc] initWithFrame:CGRectMake(0, 0, 320, 480)];
[self.webview loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:@"http://1-dot-smartrefill-968.appspot.com/#/#mfucci@gmail_com"]]];
[self.view addSubview:self.webview];
self.webview.delegate=self;
}
-(void)webViewDidFinishLoad:(UIWebView *)webView
{
NSLog(@"Finished loading");
}
-(void)webView:(UIWebView *)webView didFailLoadWithError:(NSError *)error
{
NSLog(@"Error %@", error);
}
在 Safari 中加载的 URL。
我尝试了许多不同的解决方案,但似乎都没有奏效。请帮忙。谢谢!
【问题讨论】:
标签: ios objective-c webview safari