ios - 适用于 iOS 7、6、5 的触摸控件...但不适用于 iOS 8

标签 ios opengl-es touch touchesbegan touchesmoved

我几年前开发了一款OpenGL ES游戏,至今运行良好:我在我的iPad 3中下载了Xcode 6和iOS 8,触摸控制(touchesBegan,touchesMoved,touchesEnded)只检测768x768点的正方形,而不是1024x768 的。

边缘 256 点 (1024-768) 对脉动没有反应。

游戏处于横向模式。

触摸控制似乎认为 iPad 处于纵向模式而不是横向模式。从视觉上看,它是横向的。

看起来像是 iOS 8 中的错误。

最佳答案

如果有人还在处理这个问题,我终于弄明白了 - 看起来 iOS 8 在将 UIView 直接添加到应用程序委托(delegate)中的窗口时会导致一些问题。我必须创建一个 UIViewController,将 UIView 添加到其中,然后使其成为 Root View Controller 。

关于ios - 适用于 iOS 7、6、5 的触摸控件...但不适用于 iOS 8,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25957890/

相关文章:

javascript - 触摸设备 HTML 元素 :hover state

ios - 关于小数计算器app的实现方法

ios - 如何在 NSDictionary 中传递常量

ios - Realm 查询属性(property)总和

ios - 将图像转换为 Json Swift 3 的 Base64

android - OpenGL ES 1.1 安卓立方体贴图

android - PowerVR GPU 上的着色器执行流程问题

iphone - 通过触摸移动事件限制拖动距离

c# - 向上、向下、向左或向右滑动时,如何调用另一个类中的方法? Unity2D

android - 获取键盘上的 MotionEvent