Eduardo, I’m also a beginner, but I would do it with a different approach, as suggested by Rafael.
I would use the Storeboard
, to build the flow of views, so when you have a button that displays a new view, just click on the button in question, with the key CTRL
pressed and drag to the new View, so whenever this button is pressed it will lead to the new View.
If you need some action beyond this to be performed, such as filling in some data or consulting some database, you can simply add an action of the type Touch Up Inside
, for this just click the button with the key CTRL
and drag the button to code on the function that will handle the event or create new specific function.
It worked, thank you very much
– Eduardo Bonfa