[英]iOS13 Dark Mode Keyboard isSecureTextEntry causes Snapshot Error
I have 3 textfields for name, email and password.我有 3 个用于名称、电子邮件和密码的文本字段。 The password textfield has isSecureTextEntry = true which causes this weird message output when I switch typing from the password textfield to one of the other textfields:密码文本字段具有 isSecureTextEntry = true ,当我将输入从密码文本字段切换到其他文本字段之一时,会导致此奇怪的消息输出:
Snapshotting] Snapshotting a view (0x11c510ff0, _UIReplicantView) that has not been rendered at least once requires afterScreenUpdates:YES. Snapshotting] 对至少没有渲染过一次的视图(0x11c510ff0,_UIReplicantView)进行快照需要 afterScreenUpdates:YES。
This only happens in dark mode.这只发生在黑暗模式下。 I am testing on a physical device.我正在物理设备上进行测试。 iPhone 8+. iPhone 8+。 When I switch to light mode this message doesn't output.当我切换到灯光模式时,不会输出此消息。 I am trying to understand what causes this message and what it means.我试图了解导致此消息的原因及其含义。
Using使用
overrideUserInterfaceStyle = .light
caused the output to go away.导致输出消失。 Still confused as to why this happens on dark mode.仍然对为什么在黑暗模式下会发生这种情况感到困惑。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.