在iPhone上拥有照片滑块/缩略图的更好方法是什么? [英] Better way to have a photo slider/thumbnails on iPhone?

查看:75
本文介绍了在iPhone上拥有照片滑块/缩略图的更好方法是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个很大的图片列表,想要像照片应用程序,但有自定义工具栏。

I have a probaly large list of images and want something like the photo app but with custom toolbar.

我想知道这是怎么回事。我看到Apple的样本 http://developer.apple.com/ iphone / library / samplecode / Scrolling / index.html 但不适用于大量图片。

I wonder how do this. I see the sample of Apple http://developer.apple.com/iphone/library/samplecode/Scrolling/index.html but that not will work for a large set of images.

我有一个产品清单和一些我的客户需要在设备中下载多达12,000种产品(我有一个PocketPC的解决方案,我正在移植到iPhone)。

I have a product list and some of my customer need download as much as 12,000 products in the device (I have a solution for the PocketPC I'm porting to iPhone).

在这个帖子中如何在横向模式下查看缩略图?有人建议可行使用TableView,但后来我不确定...主要是如何隐藏部分标题然后... ...

In this thread How make a view of thumbnails in landscape mode? somebody suggest is possible use a TableView, but then I'm not sure... mainly how hide the section caption then could be...

更新正确链接

推荐答案

滚动演示对于大型图像集不起作用,但是一些小的调整可以很容易解决。诀窍是使用UIScrollView委托方法按需加载图像,然后在它们消失后卸载它们。为了获得不错的性能,您需要加载中央图像和两侧的一个或两个 - 这意味着您可以扩展该设计以支持任意数量的图像,但内存中的图像仍然不会超过3-5。时间。

The "Scrolling" demo won't work as-is for a large image set, but some minor adjustments can easily fix that. The trick is to use UIScrollView delegate methods to load images on demand and then unload them after they disappear. For decent performance you'd want the central image and one or two on either side to be loaded-- meaning that you can extend that design to support as many images as you like but still never have more than 3-5 in memory at a time.

您发布的Stackoverflow链接实际上并未提及表格视图,因此我不确定您的方法是什么。如果通过section caption指的是section section和/或footer text,那么就不要提供任何内容。表视图没有默认值,所以如果你没有给表视图一个,那么它就不会显示一个。

The Stackoverflow link you post doesn't actually mention table views, so I'm not sure what approach you have in mind there. If by "section caption" you're referring to section header and/or footer text, then just don't provide any. Table views don't have a default for this, so if you don't give one to a table view then it won't show one.

这篇关于在iPhone上拥有照片滑块/缩略图的更好方法是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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