how can I convert the valuesof textbox to numeric? here's what I'm doing:
int el = electric开发者_Go百科.text;
int wb = waterbill.text;
int inet = internet.text;
Try this:
int el = [electric integerValue];
int wb = [waterbill integerValue];
int inet = [internet integerValue];
Try this:
NsInteger el = [electric.text integerValue];
NsInteger wb = [waterbill.text integerValue];
NsInteger inet = [internet.text integerValue];
精彩评论