How can the current Uiviewcontroller know which "Called" button?

Asked

Viewed 67 times

0

I have a doubt and the scenario of the question is as follows:

I am on the main screen of my app and have 2 buttons (UIButton), each takes to another screen.

After the user has chosen a button and the new screen appears, in case a new UIViewController, the new current screen, which is another UIViewController, would you know which button on the previous screen made the call? That is, there is a way to know which of the two buttons made the push or modal transiction... now in Xcode 6 is called show?

I believe using UINavigationController may have a way of knowing, but someone knows exactly how to do it?

In case the question has become confused or complex just let me know that I can try to explain otherwise.

1 answer

1


Browser other questions tagged

You are not signed in. Login or sign up in order to post.