Passing parameters between IOS views

0

I have a view where I have login forms in my app, if the person choose login or register will be redirected to the same view but depends on the button that is pressed I will present a different screen ... How can I pass the parameter to know the option my user made? Thanks

I got it via appdelegate, I wanted something simpler

    
asked by anonymous 14.01.2016 / 15:36

1 answer

1

If you are using the Storyboard simply by mapping the action it is possible to know which button the user has pressed at the moment. If the buttons are being allocated programmatically, there is the possibility to create an action for the button, which will lead to different methods, through Selector. Storyboard also uses the same Selector argument to map a single-button action. It can be used in the delegate case, the Tags to identify each button, easing when the delegate method is called.

I hope I have helped.

    
02.02.2016 / 11:31