简体   繁体   English

iOS10:当secureTextEntry时,UITextfield会挂起长输入

[英]iOS10: UITextfield hangs with long input when secureTextEntry

Strange behaviour from UITextfield with secureTextEntry . 来自UITextfield使用secureTextEntry奇怪行为。 Platform : iOS10 Both on iPhone (Device) and Simulator. 平台:iOS10都在iPhone(设备)和模拟器上。 UITextfield hangs with long input which is greater than the keyboard's width, when secureTextEntry is on. UITextfield挂起与长输入比所述键盘的宽度大,当secureTextEntry上。 The keyboard's pressed key stays popped out. 键盘按下的键保持弹出状态。

键盘键保持弹出状态

Yes, it is a bug. 是的,这是一个错误。

Bug is like : 错误就像:

An app can freeze when a user types a large password into a textfield that tries to scale down the text to fit. 当用户在尝试缩小文本以适应的文本字段中键入大密码时,应用程序可以冻结。

Check it : https://openradar.appspot.com/28590124 检查一下: https//openradar.appspot.com/28590124

Possible solution : Disable to Fit for password/secured field. 可能的解决方案:禁用以适合密码/安全字段。

  1. change the secure password character in UITextfield 更改UITextfield中的安全密码字符
  2. Secure UITextField text change to (*) asterisk character 安全UITextField文本更改为(*)星号字符

Looks like this is a bug in SDK from Apple in iOS10. 看起来这是iOS10中Apple的SDK中的一个错误。 I have resolved it with disabling Adjust to Fit for password field, (as per: 我已通过禁用“调整为适合密码”字段来解决此问题(根据:

TextEdit field input hangs on iOS10 ) TextEdit字段输入在iOS10上挂起

这已经在iOS 10.2中得到了修复!!

There's a bug in iOS 10.0.2... https://openradar.appspot.com/28590124 iOS 10.0.2中存在一个错误... https://openradar.appspot.com/28590124

I have resolved it with disabling Adjust to Fit for password field, but this is more workaround than fix. 我已经通过禁用“调整为适合密码”字段解决了这个问题,但这比解决方法更具解决方法。

this bug fixed in 10.2 10.2中修复了这个错误

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM