简体   繁体   English

多文本字段的自定义键盘

[英]Custom Keyboard for Multiple Text fields

How can I use a custom keypad I have made with multiple text fields. 如何使用我使用多个文本字段制作的自定义键盘。

So far I can do it for one but not for the others. 到目前为止,我只能为一个人做,而不能为其他人做。

Following is my code for the 'C' button on my customer keypad but only works for textFieldLoanAmount 以下是我的客户小键盘上“ C”按钮的代码,但仅适用于textFieldLoanAmount

-(IBAction) clearAll:(id)sender{

currentValue = 0.0;
[stringValue setString:@""];
textFieldLoanAmount.text = @"0";
dotPressed = NO;

Any guidance will be appreciated. 任何指导将不胜感激。

也许您应该具有某种指向当前活动文本字段的属性?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM