이 문자열 값을 다른 viewController에 전달해야합니다. 어떤 이유로 나는 sigabrt 오류가 발생했습니다. 누가 잘못된 일을 지적 할 수 있습니까? 호출하려면전달 문자열 Segue Swift
override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
if segue.identifier == "profileTapped" {
if let destination = segue.destination as? MyDestinationViewControllerType {
destination.myVariable = myClassLevelVariable
}
}
}
가능한 복제를 구현해야합니다 (http://stackoverflow.com/questions/5210535/passing-data-between-view-controllers) – pableiros