views:

31

answers:

2

how can I convert the valuesof textbox to numeric? here's what I'm doing:

int el = electric.text;
int wb = waterbill.text;
int inet = internet.text;
+1  A: 

Try this:

int el = [electric integerValue];
int wb = [waterbill integerValue];
int inet = [internet integerValue];
Eimantas
A: 

Try this:

NsInteger el = [electric.text integerValue];
NsInteger wb = [waterbill.text integerValue];
NsInteger inet = [internet.text integerValue];
Reena