shouldChangeCharactersInRange

-(BOOL)textField:(UITextField*)textField shouldChangeCharactersInRange:(NSRange)range replacementString:(NSString*)string


UITextField字符改变时调用,textField改变前的字符,range改变的范围,string改变的字符,如果确认改变返回YES,不改变返回NO

你可能感兴趣的:(iphone开发,移动开发,uitextfield,IOS)