iOS Many Images-保持良好的性能 [英] iOS Many Images - maintaining good performance

查看:50
本文介绍了iOS Many Images-保持良好的性能的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个iOS应用,您可以在其中拖动许多图像并旋转它们.它就像一个儿童应用程序,您可以在其中使用不同的零件(车轮,照明灯等)建造自己的汽车.我的计划是为每个图像使用UIImageview并允许旋转等.但是,在此之前,我想知道是否有人对是否有更好(更有效)的方法有任何想法?还是在这里使用UIImageViews是唯一的选择? (它必须是预先设计的图像,所以我不是在谈论用Quartz创建对象并用颜色填充它们).

I have an iOS app where you can drag many images and rotate them. Its like a childrens app where you might build your own car using different parts (wheels, lights, etc.). My plan is to use a UIImageview for each image and allow rotations etc. Before I do so however, I am wondering if anyone has any thoughts on if there is a better (more efficient) approach? Or is using UIImageViews the only option here? (It must be pre-designed images, so im not talking about creating objects with Quartz and filling them with color).

推荐答案

OpenGL ES可以为您提供一些显示图片的方法,但是我认为带有Core Graphics的UIImage可以很好地工作.我在屏幕上添加了约100张图片(是小图片),并对其进行了滚动.顺利使用3GS,这是我当时可以使用的最弱的设备. 我猜,所以您可以押注UIImageView.

OpenGL ES can provide you with some methods to show pics, but I think that UIImage with Core Graphics will work just fine. I've added about 100 pic (small ones, yes) to the screen and scrolled them. Smoothly on 3GS, the weakest device that I was able to use that time. So you can bet on UIImageView, I guess.

这篇关于iOS Many Images-保持良好的性能的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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