Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想向我的用户显示一个大于屏幕区域的图像,并且会过度滚动以让用户拖动它并放大。
由于分辨率更高,我是否需要为 iPhone 4 用户提供不同 dpi 的不同图像?
或者我可以根据设备设置不同的缩放级别吗?
是的,您需要使用不同的图像。如果您使用@2x后缀命名,iOS 4 将自动检测更高分辨率的图像。例如 image.png => image@2x.png
@2x
https://developer.apple.com/iphone/prerelease/library/documentation/iPhone/Conceptual/iPhoneOSProgrammingGuide/SupportingResolutionIndependence/SupportingResolutionIndependence.html
(您必须是注册 iPhone 开发人员才能查看此文档)