この文字列値を別の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