Reputation: 343
I have two view controllers - one main VC (ViewController) and this is segue'd to another VC via "Present Modally" (DetailViewController). The ViewController is embedded in Navigation Controller whereas the DetailViewController is not embedded in anything.
In my ViewController I added two functions:
@IBAction func cancelToVC(segue: UIStoryboard) {
}
@IBAction func saveDetails(segue: UIStoryboard) {
}
So now when I go to my DetailViewController I am hoping to connect two bar button items "Cancel" and "Done" to the exit button. But it doesn't even highlight to allow me to select it. Any suggestions?
Upvotes: 3
Views: 1482
Reputation: 9858
I think you should set up your IBAction func's like this:
@IBAction func cancelToVC(segue: UIStoryboardSegue) { // Not UIStoryboard
}
Upvotes: 3