iOS 4. UITouch 的 locationInView 不承认视网膜显示。错误还是功能?
UITouch 的 locationInView: 不知道视网膜显示器的存在(或不存在)是否有原因?为什么视网膜显示的重新缩放成为开发人员的任务。我觉得很奇怪。
谢谢,
道格
Is there a reason that UITouch's locationInView: is unaware of the presence (or not) of a retina display? Why is the rescaling for retina display left as a task for the developer. Seems odd to me.
Thanks,
Doug
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这是设计使然。位置以点为单位报告,而不是以像素为单位。来自 Apple 的事件处理指南:
It's by design. The location is reported as in points, not as in pixels. From Apple's Event Handling Guide: