美文网首页
UITextField加密密文输入被清空的解决方案

UITextField加密密文输入被清空的解决方案

作者: yuebiubiu | 来源:发表于2018-08-10 09:36 被阅读6次

    UITextField加密密文输入被清空的解决方案:

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

            textField.text = [textField.text stringByReplacingCharactersInRange:range withString:string];

            return NO;

    }

    相关文章

      网友评论

          本文标题:UITextField加密密文输入被清空的解决方案

          本文链接:https://www.haomeiwen.com/subject/udtkbftx.html