开发者

Custom Keyboard for Multiple Text fields

开发者 https://www.devze.com 2023-02-21 20:28 出处:网络
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.

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

开发者_如何转开发-(IBAction) clearAll:(id)sender{

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

Any guidance will be appreciated.


Perhaps you should have some sort of a property that points to the currently active text field?

0

精彩评论

暂无评论...
验证码 换一张
取 消