我是可可的新手。我创建了一个项目,其中有一个 textField 和一个按钮。我为按钮制作功能,在那里我开始我的其他功能,没关系。但是我需要从 textField 中获取数值作为我的函数的参数......就像这样:
@implementation AppController
- (IBAction)StartReconstruction:(id)sender {
int RecLine = //here i need something like textField1.GetIntValue();
drawGL(RecLine);
}
@end
在 IB 中,我只创建数字格式的文本字段。但我不知道如何从代码中调用它:(
感谢帮助