如何在iOS中为UITextFields实现自定义键盘
如何在iOS中为如何在iOS中为UITextFields实现自定义键盘,ios,uitextfield,Ios,Uitextfield,如何在iOS中为UITextFields实现自定义键盘,如上图所示 事实上,我是那样累的 - (IBAction)button2ABC:(id)sender { keypadValue=@"2"; if ([textFields_tag isEqualToString:@"one"]){ pswdTxt1.text=keypadValue; pswdTxt1.text=[keypadValue stringByAppendingString:ke
UITextFields
实现自定义键盘,如上图所示
事实上,我是那样累的
- (IBAction)button2ABC:(id)sender
{
keypadValue=@"2";
if ([textFields_tag isEqualToString:@"one"]){
pswdTxt1.text=keypadValue;
pswdTxt1.text=[keypadValue stringByAppendingString:keypadValue];
}
else if ([textFields_tag isEqualToString:@"two"]){
pswdTxt2.text=keypadValue;
}
else if ([textFields_tag isEqualToString:@"three"]){
pswdTxt3.text=keypadValue;
}
else if ([textFields_tag isEqualToString:@"four"]){
PswdTxt4.text=keypadValue;
}
}
每当我在选择UITextfield
后按下按钮时,该字符将替换为前一个字符,而不是追加