gpt4 book ai didi

ios4 - iOS 4。UITouch 的 locationInView 不承认视网膜显示。错误或功能?

转载 作者:行者123 更新时间:2023-12-02 05:08:42 25 4
gpt4 key购买 nike

是否存在 UITouch 的 locationInView: 不知道视网膜显示器存在(或不存在)的原因?为什么视网膜显示的重新缩放留给开发人员作为任务。我觉得很奇怪。

谢谢,
道格

最佳答案

这是设计使然。位置报告为点,而不是像素。来自 Apple 的事件处理指南:

iOS 4.0 still reports touches on iPhone 4 (and on future high-resolution devices) in a 320x480 coordinate space to maintain source compatibility, but the resolution is twice as high in each dimension for applications built for iOS 4.0 and later releases.

关于ios4 - iOS 4。UITouch 的 locationInView 不承认视网膜显示。错误或功能?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8247123/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com