I have a question and the scenario for the question is as follows:
I'm in the main screen of my app and I have 2 buttons ( UIButton
), each one takes to another screen.
After the user chooses a button and the new screen appears, in the case of a new UIViewController
, does the new screen, which is another UIViewController
, know which button on the previous screen made the call? That is, how can I tell which of the two buttons made push
or modal
transiction
... now in Xcode 6 is called show
?
I think using UINavigationController
might have a way of knowing, but can anyone know for sure how this can be done?
If the question is confusing or complex, just let me know what I can try to explain otherwise.