美文网首页
加密的UITextField在重新输入密码时,总会clear之前

加密的UITextField在重新输入密码时,总会clear之前

作者: 代码干货 | 来源:发表于2016-03-08 09:48 被阅读446次

<code>
-(BOOL)textField:(UITextField *)textField shouldChangeCharactersInRange:(NSRange)range replacementString:(NSString *)string {
NSString *updatedString = [textField.text stringByReplacingCharactersInRange:range withString:string]; textField.text = updatedString; return NO;
}
</code>

UITextField with secure entry, always getting cleared before editing

相关文章

网友评论

      本文标题:加密的UITextField在重新输入密码时,总会clear之前

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