-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFirstViewController.swift
More file actions
50 lines (31 loc) · 959 Bytes
/
FirstViewController.swift
File metadata and controls
50 lines (31 loc) · 959 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
//
// FirstViewController.swift
// Swift6WKWebView1
//
// Created by 井戸春希 on 2021/03/04.
//
import UIKit
class FirstViewController: UIViewController {
var type : Int?
override func viewDidLoad() {
super.viewDidLoad()
}
@IBAction func youtube(_ sender: Any){
type = 1
performSegue(withIdentifier: "next", sender: nil)
}
@IBAction func doushisha(_ sender: Any) {
type = 2
performSegue(withIdentifier: "next", sender: nil)
}
@IBAction func Amazon(_ sender: Any) {
type = 3
performSegue(withIdentifier: "next", sender: nil)
}
override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
if segue.identifier == "next"{
let next = segue.destination as! ViewController
next.type = self.type
}
}
}