Xcode中的最大图像宽度和高度? [英] Max Image Width and Height in Xcode?

查看:102
本文介绍了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.

推荐答案

UIView docs 说:


在iOS 2.x中,
UIView对象的最大大小为1024 x 1024点。
在iOS 3.0及更高版本中,视图不会超过
,限制为此最大大小
,但仍然受限于它们消耗的
内存量。保持视图尺寸尽可能小于
符合您的
最佳利益。无论哪个
版本的iOS正在运行,你应该考虑
平铺任何比屏幕的
尺寸大得多的
内容。

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.

这篇关于Xcode中的最大图像宽度和高度?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆