This topic created in 4110 days ago, the information mentioned may be changed or developed.
- (BOOL)textField:(UITextField *)textField shouldChangeCharactersInRange:(NSRange)range replacementString:(NSString *)string
{
if (range.location > 0)
{
textField.text = [textField.text stringByAppendingFormat:@"%@",string] ;
return NO;
}
return YES;
}
1 replies 2015-01-24 21:07:19 +08:00