0

Say, for instance I have a UIWebview. If I get the status code of 404, then I want to return some data to the previous view controller so that it knows to refresh the list of webpages.

I heard about unwind segues. However, everything that I have found on this sounds like it has to be implemented via a storyboard button.

Is there anyway to perform an unwind segue just in code. Meaning if I find this error - then set some kind of variable to the previous view controller so that it knows how to handle the error?

Thanks!

Sandy D.
  • 3,166
  • 1
  • 20
  • 31

1 Answers1

0

You should try searching before ask, this is already answered on here:

How to perform Unwind segue programmatically?

Look at Vadim and Dean answers

Community
  • 1
  • 1
Fantini
  • 2,067
  • 21
  • 32
  • 1
    I did do research before asking. But, my question was specifically without a button. Everything I had found was with a button. Thank you for the link! – Sandy D. Dec 08 '14 at 01:43