How can the current UIViewController know which button to "Call"?

0

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.

    
asked by anonymous 23.09.2014 / 05:49

1 answer

1

@PauloRodrigues helped me a lot with your response to another question , and even answered this. I'll leave the link to anyone with the same problem.

Link to Reply: Determining content to fill UITableView based on a UIButton tag

    
24.09.2014 / 21:06