【发布时间】:2018-08-08 10:02:36
【问题描述】:
这是我显示图像的代码。
NSString *doc = @"http://13.232.1.87:3000/images/flights/bc4952c8ec51588cdbd72d91c4e1533562273837.jpeg";
WKWebViewConfiguration *theConfiguration = [[WKWebViewConfiguration alloc] init];
WKWebView *webView = [[WKWebView alloc] initWithFrame:self.view.frame configuration:theConfiguration];
NSURLRequest *nsrequest=[NSURLRequest requestWithURL:[NSURL URLWithString:doc]];
[webView loadRequest:nsrequest];
[self.view addSubview:webView];
【问题讨论】:
-
您是否尝试过先回答这个问题:如何对齐网页中的图像?
标签: ios objective-c iphone webview wkwebview