是否有可能在文本框显示之前修改自动填充字符串?

问题描述 投票:0回答:2

我必须要改变手机串号的自动填充来,然后写入文本框。我用this method检测自动填充。但是我对这种方法不能访问字符串。可能吗?

ios swift uitextfield autofill
2个回答
0
投票
func textField(_ textField: UITextField, shouldChangeCharactersIn range: NSRange, replacementString string: String) -> Bool

其中replacementString是你的答案

© www.soinside.com 2019 - 2024. All rights reserved.