I have a textfield named "textField" and a label named "label".I want to add sum numbers an divide to the number i get from the "textField" and then print it on the label.
I'm trying something like:
int a = [textField.text integerValue];
a = a + 2;
label.text = a;
But it says passing argument 1 of setText. I suppose i have to make textfield a string and then the string to integer.
Please help!
I'm trying something like:
int a = [textField.text integerValue];
a = a + 2;
label.text = a;
But it says passing argument 1 of setText. I suppose i have to make textfield a string and then the string to integer.
Please help!