-1

我正在寻找能够将文本字段转换为方程式变量的代码。我已经设置了文本字段,单击时他们会拉出一个小键盘,我只需要将它们链接起来。建议?

4

1 回答 1

1

without more detail i cant really help but for extracting something from a textfield

just get the string form the textfield, then convert to int?

NSString *variable = textfield.text;
int x= [variable intValue];
于 2012-08-09T19:42:58.773 回答