iOS 10 XCode 8 - 安全文本字段,错误? [英] iOS 10 XCode 8 - secure text field, bug?

查看:243
本文介绍了iOS 10 XCode 8 - 安全文本字段,错误?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我将我的应用程序从Xcode 7更新为Xcode 8,现在我遇到了我的密码输入字段问题。
当密码长于提供的字段时,我的应用程序冻结并开始消耗内存直至崩溃有趣的是,它只是在我将文本设置为安全文本时才会发生。
我的字段是垂直居中的并且具有固定的宽度(不确定这是不是很重要),
当我的密码是比字符数更长,输入字段可以占用(并且它应该向左移动)我得到了崩溃。

I updated my app from Xcode 7 to Xcode 8 and now I am facing a problem with my password input field.
When the password is longer than the provided field, my app freezes and starts to consume memory until it crashes.
Fun fact, it just happens when I set the text to "secure text".
My field is vertically centered and has a fixed width (not sure if thats imporant),
and when my password is longer than the number of characters, the input field can take (and where it should move to the left) I get the crash.

有没有人经历这样的smt?< br>(正如我所说,我刚刚更新到更新的XCode - 在10.0.2真实设备上运行,在旧的设备上没有这个问题......)

Did anybody experience smt like that?
(as I said I just updated to a newer XCode - running on a 10.0.2 real device, didnt have that problem on the old one ...)

谢谢,

问候

推荐答案

是的,这是一个错误。

Yes, it is a bug.

错误就像:


当用户键入a时,应用可以冻结尝试缩小文本以适应文本字段的大密码。

An app can freeze when a user types a large password into a textfield that tries to scale down the text to fit.

检查: https://openradar.appspot.com/28590124

可能的解决方案:


  1. 更改UITextfield中的安全密码字符

安全UITextField文本更改为(*)星号字符

这篇关于iOS 10 XCode 8 - 安全文本字段,错误?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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