VerificationCode icon indicating copy to clipboard operation
VerificationCode copied to clipboard

自定义多位验证码

Results 4 VerificationCode issues
Sort by recently updated
recently updated
newest added

加了textFiled.textContentType = .oneTimeCode 还是不行, 要将app回到后台在切回来一下才可以显示 有办法可以解决么

我这边实在完成方法里调用验证接口,上线以后大量用户访问的时候会调用完成方法3次。不知道咋回事

意思就是无法输入第六位, func textField(_ textField: UITextField, shouldChangeCharactersIn range: NSRange, replacementString string: String) -> Bool { 这个方法在这台iPad上, 输入第六位时调用此方法比第五位调用此方法更早,也就是输入完以后,第五位又调用此方法,造成第六位被清除。