user2722667
user2722667

Reputation: 8661

Swift not sure if I am using segue the right way

In my story board I have VC1>VC2>VC2>VC4

In order to go right back to VC1 from VC4 I have setup the function:

@IBAction func unwindToVcOne(segue: UIStoryboardSegue) {

}

Then adding that to my segue from the storyboard. Everything works fine except that it shows up as an empty circle in my editor as its not connected:

enter image description here

It works, so is this something that I can ignore?

Upvotes: 0

Views: 64

Answers (1)

Paulw11
Paulw11

Reputation: 114875

As far as I know the circle next to an unwind method always shows as empty as there isn't a fixed binding between the storyboard scene and the method the way that there is with an action method.

The IBAction lets Interface Builder know that there is a method it should be interested in; the method signature indicates that it is an unwind segue method.

The actual unwind method that is called is determined at runtime as describe in this Apple Technical Note.

Upvotes: 2

Related Questions