Skip to content

Commit

Permalink
#7 simpleAlert
Browse files Browse the repository at this point in the history
  • Loading branch information
seondal committed Dec 24, 2021
1 parent 3dcba4c commit 63aa8cb
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 13 deletions.
Binary file not shown.
23 changes: 10 additions & 13 deletions DalTube/DalTube/Login/LoginViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -26,20 +26,17 @@ class LoginViewController: UIViewController {
}

@IBAction func touchUpToGoToWelcomeView(_ sender: Any) {
guard let welcomeVC = self.storyboard?.instantiateViewController(withIdentifier: "WelcomeViewController") as? WelcomeViewController else {return}
welcomeVC.name = nameTextField.text
self.present(welcomeVC, animated: true, completion: nil)
// guard let welcomeVC = self.storyboard?.instantiateViewController(withIdentifier: "WelcomeViewController") as? WelcomeViewController else {return}
//
// welcomeVC.name = nameTextField.text
// self.present(welcomeVC, animated: true, completion: nil)
}

/*
// 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.
func simpleAlert(title: String, message: String) {
let alert = UIAlertController(title: title, message: message, preferredStyle: .alert)
let okAction = UIAlertAction(title: "확인", style: .default)
alert.addAction(okAction)
present(alert, animated: true)
}
*/


}

0 comments on commit 63aa8cb

Please sign in to comment.