iTunes风格模态视图控制器链(表单) [英] iTunes style modal view controller chain (form sheet)

查看:193
本文介绍了iTunes风格模态视图控制器链(表单)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法实现iTunes风格的模态视图控制器链(见截图)?
我看了很多,但是找不到任何真正的问题。我不是在寻找替代品或解决方法,只是想知道是否可以使用当前的SDK(或iOS 5.0,尽管我们不应该谈论它简单的是/否就足够了)。

Is there a way to achieve the iTunes style modal view controller chain (see screenshot)? I've looked around quite a bit but couldn't find any real questions about this. I'm not looking for a replacement or workaround, just want to know if it is possible to do with the current SDK (or iOS 5.0, although we are not supposed to talk about it a simple Yes/No would suffice).

对于那些无法从图像中删除的人; iPad上的iTunes有这个很棒的功能,您可以在表单样式 modalviewcontroller 中查看电影,如果点击在同一个 modalviewcontroller 中的另一部电影中,它将创建一个新的 modalviewcontroller ,其中包含您点击的电影信息并将滑动'老'一个(左)。当中心 modalviewcontroller 被解散时,它会重新滑入。

For those who can not make it out from the image; iTunes on the iPad has this great feature where you can view a movie in a formsheet style modalviewcontroller, and if you click on another movie in that same modalviewcontroller it will create a new modalviewcontroller with the movie info you clicked on and will slide the 'old' one out (to the left). It will slide back in when the center modalviewcontroller is dismissed.

更新
我'我确定它以前已经完成,但我编写了自己的实现。事实证明并不是很困难,虽然它错过了一些上下文动画(比如从位置翻转),它非常实用。自从我为iOS 5编写它以来,我将在今年秋季取消NDA时公开代码。

UPDATE: I'm sure it has been done before, but I wrote my own implementation. It turned out not to be very difficult, although it misses some context-animations (like the flip from position), it is pretty usable. Since I wrote it for iOS 5, I will make the code public this fall when the NDA is lifted.

推荐答案

我怀疑它是一个带有scrollview的模态视图控制器。滚动视图具有半透明背景并显示多个页面。如果采用这种方法,我无法想象它实施起来太难了。

I suspect that it's a single modal view controller with a scrollview. The scroll view has a semitransparent background and displays several "pages". If you take that approach, I can't imagine it being too difficult to implement.

这篇关于iTunes风格模态视图控制器链(表单)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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