데이터전달
-
Swift 화면간 데이터 전달Programming/Swift(iOS) 2021. 9. 7. 12:24
Swift에서 화면 전환간 데이터 전달하는 방법 1. ViewController를 찾아 직접 전달 (A->B로 전달) ViewController가 가진 변수에 직접 data를 전달 @IBAction func tapCodePresentButton(_ sender: Any) { guard let viewController = self.storyboard?.instantiateViewController(identifier: "CodePresentViewController") as? CodePresentViewController else { return} viewController.name = "Honggggggg" viewController.modalPresentationStyle = .fullScreen v..