在iOS7中,文本放大镜不适用于应用范围 [英] In iOS7 Text Magnifier isn't working app wide

查看:118
本文介绍了在iOS7中,文本放大镜不适用于应用范围的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的一个应用程序中遇到了一个相当恼人的错误。在iOS7中,当我按住UITextView或UITextField调出放大镜时,放大区域内没有任何内容。这个问题是应用程序范围广泛,唯一显示在圆圈区域的元素是键盘本身(当我将手指向下拖动到它的顶部时)。

I have a came across a rather annoying bug in one of my apps. In iOS7 when I hold down on a UITextView or UITextField to bring up the Magnifying Glass, nothing shows up in the magnified area. This problem is app wide and the only element that ever shows up in the circle area is the keyboard itself (when I drag my finger down to the top of it).

我已尝试从只有一个UITextView的视图控制器到UIWebView的所有内容,问题是应用程序范围广。

I have tried everything from View Controllers with only a single UITextView to UIWebView and the problem is app wide.

放大镜在iOS6设备和iOS7模拟器上按预期工作。但是我没有在运行iOS7的任何设备上测试它。

The magnifying glass works as expected on iOS6 devices, and the iOS7 simulator. But not on any of the devices I have tested it with running iOS7.

非常感谢任何帮助。

推荐答案

我通过在appDelegate中将我的主窗口的windowLevel设置为浮点值1.2来修复此问题:

I fixed this by setting the windowLevel of my main window to a float value of 1.2 in appDelegate:

self.window.windowLevel = 1.2;

这是iOS7提升主窗口默认级别的一种破解,即UIWindowLevelNormal( 1.0)到1.2

This is a sort of hack for iOS7 to raise the default level of your main window which is UIWindowLevelNormal (1.0) to 1.2

这篇关于在iOS7中,文本放大镜不适用于应用范围的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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