I'm calling it like this
override func prepareForSegue(segue: UIStoryboardSegue!, sender: AnyObject!) {
if (segue.identifier == "hat") {
let itemVC: ItemViewController = sender.destinationViewController as ItemViewController
itemVC.myDelegate = self
itemVC.nameArray = self.nameArray
}
}
but the lldb freezes up once I call to go to the next view controller. Any idea whats going on?
I believe you want:
segue.destinationViewController
instead of:
sender.destinationViewController
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.