generated from 30th-THE-SOPT-iOS-Part/KimTaeHyeon
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathThirdViewController.swift
40 lines (29 loc) · 1.12 KB
/
ThirdViewController.swift
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
//
// ThirdViewController.swift
// SOPT30th-1st-Assignment
//
// Created by Zaid Kang on 2022/04/08.
//
import UIKit
class ThirdViewController: UIViewController {
var name: String?
override func viewDidLoad() {
super.viewDidLoad()
// Do any additional setup after loading the view.
}
@IBAction func moveFourthController(_ sender: Any) {
guard let nextVC = self.storyboard?.instantiateViewController(withIdentifier: "FourthViewController") as? FourthViewController else { return }
guard let name = name else { return }
nextVC.name = "\(name)님, 인스타그램에 오신것을 환영합니다."
nextVC.navigation = self.navigationController
self.present(nextVC, animated: true)
}
/*
// MARK: - Navigation
// In a storyboard-based application, you will often want to do a little preparation before navigation
override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
// Get the new view controller using segue.destination.
// Pass the selected object to the new view controller.
}
*/
}