Xcode 中的最大图像宽度和高度?

发布于 2024-11-07 18:43:04 字数 177 浏览 0 评论 0原文

我可以发誓我不久前看到可以加载到 Xcode 中的最大图像尺寸是 1024 x 1024,这意味着你不能使用比这个更大的图像,但我不记得在哪里看到过它,我希望有人能帮我验证或反驳这个说法吗?有人有什么想法吗?我希望能够使用比这更大的图像,以防我需要创建一个非常大的动画文件,但我想知道在开始制作它们之前这是否可以工作。感谢您提供的任何帮助。

I could have sworn that I seen a while back that the max image size you can load into Xcode was 1024 x 1024, meaning you can't use images that are larger than this, but I can't remember where I seen it and I was hoping someone could verify or refute this statement for me? Anyone have any idea? I was hoping to be able to use images that are larger than this incase I need to create an animation file that is very large, but I want to know if this will work first before I start making them. Thanks for any help you can provide.

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

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

发布评论

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

评论(3

琴流音 2024-11-14 18:43:04

UIView 文档 说:

在 iOS 2.x 中,a 的最大大小
UIView 对象是 1024 x 1024 点。
在 iOS 3.0 及更高版本中,视图没有
不再受此最大尺寸限制
但仍受到数量的限制
他们消耗的内存。它在你的
保持视图大小的最佳利益
尽可能小。无论哪一个
iOS 版本正在运行,你应该
考虑平铺任何内容
明显大于
屏幕尺寸。

The UIView docs say:

In iOS 2.x, the maximum size of a
UIView object is 1024 x 1024 points.
In iOS 3.0 and later, views are no
longer restricted to this maximum size
but are still limited by the amount of
memory they consume. It is in your
best interests to keep view sizes as
small as possible. Regardless of which
version of iOS is running, you should
consider tiling any content that is
significantly larger than the
dimensions of the screen.

柳若烟 2024-11-14 18:43:04

它认为 XCode 对图像的大小没有任何限制。

我在 iOS 和 Mac 应用程序中都使用过 1024x1024 的大图像。在 iOS 中,我使用了大图像作为地图。
在 Mac 应用程序上,我为它们设置了窗口背景。

It don't think XCode has any restrictions on the size of an image.

I've used, large images that 1024x1024 in both iOS and Mac apps. In iOS i've used the large images for maps.
On the Mac App I had them a background for the window.

以为你会在 2024-11-14 18:43:04

不是 XCode 有大小限制,而是 iPhone。正如 Jason 和 rckoenes 所说,文档中说 1024x1024,但据我测试,iPhone 上 UIView 的最大尺寸是 16.000 像素(不是点!意味着在视网膜上为 8.000。)。
您想要放大的每个视图都必须使用 UIScrollViewCATiledLayer

It's not XCode that have a size limit but the iPhone. The documentation says 1024x1024 like Jason and rckoenes said but as far as I had tested the largest size of a UIView on the iPhone is 16.000 Pixel (not Points! means on retina 8.000.).
Every view you want to make larger must use a UIScrollView or CATiledLayer

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