摘要:
实现下面的委托#define NUMBERS @"0123456789\n"- (BOOL)textField:(UITextField *)textField shouldChangeCharactersInRange:(NSRange)range replacementString:(NSString *)string{ NSCharacterSet *cs; if(textField == phoneNumberField) { //invertedSet 方法是去反字符,把所有的除了数字的字符都找出来 cs = [[NSCharacterSet charac... 阅读全文