iPad 应用程序需要@2x 图形吗?

发布于 2024-12-29 13:43:22 字数 142 浏览 5 评论 0原文

我是第一次制作通用应用程序,我想知道在 iPad 上我是否需要像 iPhone 应用程序那样包含所有图形的 @2x 版本,或者 iPad 不支持这一点?即,如果我的背景图像是 1024 x 768,我是否需要 2048 x 1536 @2x 版本?

谢谢

I am making a universal app for the first time and I am wondering with the iPad if I need to include an @2x version of all my graphics like I do for iPhone apps or does the iPad not support that? i.e. if my background image is 1024 x 768 do I need a 2048 x 1536 @2x version?

Thanks

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(5

挽清梦 2025-01-05 13:43:22

不,iPad 1 和 iPad 2 提供的最大屏幕分辨率为 1024x768。

No, the iPad 1 and iPad 2 offer a maximum screen resolution of 1024x768.

一花一树开 2025-01-05 13:43:22

不会,iPad 1 和 iPad 2 的场景分辨率相同,均为 1024 x 768。目前没有“视网膜”iPad,因此您无需担心包含“@2x”图标。

No, the iPad 1 and iPad 2 have the same scene resolution of 1024 x 768. There is currently no "retina" iPad, so you do not need to worry about including "@2x" icons.

べ映画 2025-01-05 13:43:22

不,你不需要它们......

除非你想在 iPad 用户“缩放”显示时重新缩放你的 (iPhone) 图形。当 iPad 用户更改应用程序缩放级别时,您可以收到此通知:

_UIClassicApplicationWillChangeZoomNotificationName

并使用适当的图形,或者在您的视图、图层等上设置绘图比例,

// scale just changed!
CGFloat scale = [[_window screen] scale];
[layer setRasterizationScale:scale];
[layer setShouldRasterize:YES];

这完全是可选的。有些视图具有自定义图形,在 iPad 上放大时看起来很糟糕,这可以为您解决这个问题。

No, you don't need them....

UNLESS you want to re-scale your (iPhone) graphics when an iPad user "zooms" the display. When the iPad user changes the application zoom level, you can receive this notification:

_UIClassicApplicationWillChangeZoomNotificationName

And use the appropriate graphics, or on your views, layers, etc. set the drawing scale

// scale just changed!
CGFloat scale = [[_window screen] scale];
[layer setRasterizationScale:scale];
[layer setShouldRasterize:YES];

It's entirely optional. Some views have custom graphics that look terrible when scaled up on an iPad, this can fix that for you.

七婞 2025-01-05 13:43:22

是的。由于第三代iPad现已上市,支持@2x分辨率,因此您应该集成@2x图形。

Yes. Since the third iPad generation is available now, which supports @2x resolution, you should integrate @2x graphics.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文