IPhone : How to go back to previous view controller?

on Sunday, February 22, 2015

I have an UIViewController A with push segue to UIViewController B, in some case i need to repeat this for example:



ViewController A -> ViewController B -> ViewController A -> ViewController B


Also i need to pass data from ViewController B -> ViewController A


I don't want to create 4 ViewControllers, so how can I recycle code in this case?


0 comments:

Post a Comment