TextEdit字段输入在iOS10上挂起 [英] TextEdit field input hangs on iOS10

查看:166
本文介绍了TextEdit字段输入在iOS10上挂起的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

自从重建我的几个应用以来,我在iOS10上遇到了一个非常奇怪的问题。
每次我输入更多的字符然后它适合在UITextField应用程序的屏幕上只是冻结并且没有任何反应,调试器中没有单个错误被冻结。几分钟内应用程序因内存问题崩溃。

Im experiencing very odd issue on iOS10 since rebuilding my few apps. Every time i input more characters then it fits on screen in UITextField app just freeze and exactly nothing happens, there is no single error in debugger just frozen. After few minutes app crashes with memory issue.

Message from debugger: Terminated due to memory issue

我认为这是与UITextField相关的sizeToFit搞砸了,至于我记得如果文本不完全适合UITextField它会变小然后向左移动。
无论如何问题只发生在 secureTextEntry = true 作为密码字段。 Apple再次搞砸sdk,有没有人有任何解决方法或更好的想法,修复此问题?

I think it's something messed up with sizeToFit related to UITextField, as far i remember if text does not fits entirely in UITextField it gets smaller and then moves left. Anyway issue happens only with secureTextEntry = true as it's password field. Apple messed up again with sdk, does anyone have any idea for workaround or better, fix on this?

推荐答案

我已经解决了禁用调整为适合密码字段,但这比解决方法更具解决方法。

I have resolved it with disabling Adjust to Fit for password field, but this is more workaround than fix.

这篇关于TextEdit字段输入在iOS10上挂起的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆