iOS黑色放大镜 [英] iOS Black Magnifying Glass

查看:59
本文介绍了iOS黑色放大镜的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在开发iOS应用程序,但遇到了奇怪的事情.

I've been working on an iOS application and I came a cross with a bizarre behaviour.

这会在iPhone 4和4S中发生(我无法在iPhone 5或5S中进行测试),但不会在模拟器或同一设备中的其他应用程序中发生.该界面是本机界面(不是webapp).

This happens in iPhone 4 and 4S (I've not been able to test in iPhone 5 or 5S) but doesn't happen in the emulator or others apps in the same device. The interface is native (it's not a webapp).

有人遇到过这个黑点吗?

Have anyone came across with this black spot?

它发生在每个TextField中(是否安全)

It happens in every TextField (secure or not)

推荐答案

我遇到了同样的问题,并为自己解决了这个问题.

I had the same issue, and just solved it for myself.

在我的应用程序中,我将在不同的 UIWindow 中展示应用程序的不同模式,这涉及创建不同的窗口并更改哪个窗口是关键且可见的.

In my app, I'm presenting different modes of my app in different UIWindows, which involves creating different windows and changing which window is key and visible.

带有黑色眼镜的文本字段位于某个窗口中,该窗口的 windowLevel = UIWindowLevelNormal .

The text fields with the black eyeglass showing up were in a certain window, whose windowLevel = UIWindowLevelNormal.

更改我的 keyWindow windowLevel 对我有用:

keyWindow.windowLevel = UIWindowLevelNormal + 0.1;

Voila某种程度上起作用了……我希望这会有所帮助!

Voila somehow it's working... I hope this helps!

这篇关于iOS黑色放大镜的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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