How to go from a C view to an A view with the navigation back button

0

I have a navigation controller in the storyboard and I noticed that this has the option to add a navigation bar and has a button to go to the previous view (back) according to the order, it is possible that when pressed it can take to another view without following that order, to say from a view "C" in view "A"

    
asked by elkin sepulveda 09.08.2016 в 09:37
source

1 answer

0

To do what you ask, you need to implement several views, linked by segues

And adding this function:

override func prepareForSegue(segue: UIStoryboardSegue, sender: AnyObject?) {
    let detailVC = segue.destinationViewController as! DetailViewController
    detailVC.articleToDisplay = self.selectedArticle
}

I leave you some links to the documentation and examples:

link

link

link

I hope it serves you

    
answered by 09.08.2016 / 11:25
source