I need to make a button to do something on another page. I know how to code a button to make wanted things on the same page(same viewcontroller) also make that button to open another page(another viewcontroller) but how can I make it both at the same time ?
Here is an example for a simple calculator.
- Open the program
- Enter two numbers
- Click the button
- SecondPage comes up and shows the result from the first page
Is it something about delegates? Please explain.
I receive some answers and thanks for that lets make it simple and make that button to write something on a label which is in the second page can you write that code too its simple a button at the first page will write something to a label on second page. First view controllers name is ru1 second viewcontrollers name is ru2
Also can you explain me where to write what I am noob and I have hard time understanding what you say ?