Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iOS Black Magnifying Glass

Tags:

ios

iphone

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

Black Magifying Glass

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?

EDIT: It happens in every TextField (secure or not)

like image 721
baen Avatar asked Oct 02 '22 18:10

baen


1 Answers

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

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.

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

Changing my keyWindow's windowLevel did the trick for me:

keyWindow.windowLevel = UIWindowLevelNormal + 0.1;

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

like image 68
beebcon Avatar answered Oct 13 '22 12:10

beebcon