0

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?

rmaddy
  • 314,917
  • 42
  • 532
  • 579
user2722667
  • 8,195
  • 14
  • 52
  • 100
  • if its working properly you can safely ignore this, a quit and relaunch of Xcode may show this correctly. – Anil Varghese Sep 08 '15 at 17:55
  • @AnilVarghese thanks for your response, it always shows as empty even if I reload the project. But I will ignore it since it works – user2722667 Sep 08 '15 at 17:56
  • How does the unwindToVcOne method get called? Is it really bound to something in Interface Builder, or do you only call it from other places in the code? If you are calling the method from somewhere else, it may work, but it is not successfully bound to anything in IB. Or are you setting up the binding in the code? – wottle Sep 08 '15 at 18:57
  • @wottle I was following this: http://stackoverflow.com/questions/12561735/what-are-unwind-segues-for-and-how-do-you-use-them I ctrl-dragged form my close button to the exitUnwind, and when the popup shows up I select "unwindToVcOne" – user2722667 Sep 08 '15 at 19:31

1 Answers1

2

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.

Paulw11
  • 108,386
  • 14
  • 159
  • 186