工具栏中的缩略图滑块,如iPad Photos应用 [英] Thumbnail slider in toolbar like iPad Photos app

查看:97
本文介绍了工具栏中的缩略图滑块,如iPad Photos应用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想将缩略图放在工具栏中,就像照片应用一样。就像左边的截图:

I would like to put thumbnails in the toolbar like the Photos app. Like the screenshot on the left:

alt text http://images.apple.com/ipad/features/images/photos_perfect_20100225.jpg

是否有内置的控制这样做,还是我必须从头开始实施?

Is there is a built-in control to do this, or do I have to implement it from scratch?

如果答案是从头开始,任何提示?

If the answer is from scratch, any tips?

推荐答案

这将是你必须自己编写的控件。我不是最好的方法,但我想我会继续使用UISlider,将图像数组彼此相邻以创建轨道,然后使用当前图像作为句柄。

This would be a control you'd have to write yourself. I'm not what the best approach would be, but I think I'd go with subclassing a UISlider, drawing the array of images next to each other to create the track, and then using the current image as the handle.

这篇关于工具栏中的缩略图滑块,如iPad Photos应用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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