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!