IOS: prepareForSegue callback for another direction (i.e. the return button is pressed)

I am wondering if there is a callback similar to prepareForSegue that is called when the parent UIViewController is returned when the user offers the [back] button.

I would also like to receive the information from which the user controller was received, from which the user clicked the "Back" button.

+6
source share
1 answer

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

+2
source

Source: https://habr.com/ru/post/909993/


All Articles