How can I, in objective-c, access the data that the user has input from textfields with an action method connected to a button?
For Example, User inputs in to textfield wage, 9, inputs into textfield hours, 10, the button would take wage (9) and times it by hours (10) and print in textfield payCheck, 90. How can I do that?
How can I, in objective-c, access the data that the user has input from
Share
You can get the value from textfield by the property ‘text’
Then convert the type you want, for example int value,
So in the function that handle your button clicked, get those value and assign it to another textField using