Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iOS: is prepareForSegue callback for the other direction (i.e. back button pressed)

I'm wondering if there's a callback, similar to prepareForSegue, which gets called when returning to a parent UIViewController, when the user preses the [back] button.

I'd also like to get the information, from which child view controller the user came from, meaning, in which view controller the user pressed the back button.

like image 764
znq Avatar asked Mar 05 '12 12:03

znq


1 Answers

Use delegate methods if you want to get data back from a pushed (or modal) VC. If you need an example, check here

like image 170
LJ Wilson Avatar answered Sep 24 '22 21:09

LJ Wilson