if (textField == _phoneTF) {
        
         //支持删除
         if (range.length == 1 && string.length == 0) {
             return YES;
         }
         
         else if (_phoneTF.text.length >= 11) {
             
             _phoneTF.text = [textField.text substringToIndex:11];
             
             //提示:可以去掉
        [NDHudView showText:
@"联系方式不得超过11位!" animated:YES configParameter:^(NDHudView *config) { } duration:1.0 inView:[AppDelegate sharedInstance].window]; return NO; } else{ return YES; } }

 

相关文章:

  • 2021-11-15
  • 2021-11-05
  • 2021-12-08
  • 2021-06-02
  • 2022-01-14
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-09-04
  • 2021-06-07
  • 2022-12-23
  • 2021-11-28
  • 2022-12-23
  • 2022-12-23
  • 2021-09-15
相关资源
相似解决方案