質問編集履歴
1
コードの書き忘れがありました
test
CHANGED
File without changes
|
test
CHANGED
@@ -237,3 +237,47 @@
|
|
237
237
|
|
238
238
|
|
239
239
|
```
|
240
|
+
|
241
|
+
```ここに言語を入力
|
242
|
+
|
243
|
+
import UIKit
|
244
|
+
|
245
|
+
import WebKit
|
246
|
+
|
247
|
+
|
248
|
+
|
249
|
+
class DetailViewController : UIViewController{
|
250
|
+
|
251
|
+
@IBOutlet weak var webView: WKWebView!
|
252
|
+
|
253
|
+
|
254
|
+
|
255
|
+
var link:String!
|
256
|
+
|
257
|
+
|
258
|
+
|
259
|
+
override func viewDidLoad() {
|
260
|
+
|
261
|
+
super.viewDidLoad()
|
262
|
+
|
263
|
+
if let url = URL(string: self.link){
|
264
|
+
|
265
|
+
let request = URLRequest(url: url)
|
266
|
+
|
267
|
+
self.webView.load(request)
|
268
|
+
|
269
|
+
}
|
270
|
+
|
271
|
+
|
272
|
+
|
273
|
+
}
|
274
|
+
|
275
|
+
}
|
276
|
+
|
277
|
+
|
278
|
+
|
279
|
+
|
280
|
+
|
281
|
+
|
282
|
+
|
283
|
+
```
|