Xcode 中的最大图像宽度和高度?
我可以发誓我不久前看到可以加载到 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
UIView 文档 说:
The UIView docs say:
它认为 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.
不是 XCode 有大小限制,而是 iPhone。正如 Jason 和 rckoenes 所说,文档中说 1024x1024,但据我测试,iPhone 上
UIView
的最大尺寸是 16.000 像素(不是点!意味着在视网膜上为 8.000。)。您想要放大的每个视图都必须使用
UIScrollView
或CATiledLayer
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
orCATiledLayer