iTunes风格模态视图控制器链(表单)
有没有办法实现 iTunes 风格的模态视图控制器链(见截图)? 我环顾四周但找不到任何关于此的真正问题。我不是在寻找替代品或解决方法,只是想知道是否可以使用当前的 SDK(或 iOS 5.0,尽管我们不应该谈论它,简单的是/否就足够了)。
对于那些无法从图像中看出的人; iPad 上的 iTunes 有一个很棒的功能,您可以在 formsheet
样式 modalviewcontroller
中观看电影,并且如果您单击同一 modalviewcontroller
中的另一部电影code> 它将使用您单击的电影信息创建一个新的 modalviewcontroller
,并将“旧”控制器滑出(向左)。当中心 modalviewcontroller
关闭时,它将滑回。
更新: 我确信以前已经做过,但我编写了自己的实现。事实证明这并不是很困难,尽管它错过了一些上下文动画(例如从位置翻转),但它非常有用。由于我是为 iOS 5 编写的,因此我将在今年秋天 NDA 解除时公开该代码。
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).
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.
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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我怀疑它是一个带有滚动视图的单一模式视图控制器。滚动视图具有半透明背景并显示多个“页面”。如果你采取这种方法,我无法想象实施起来会太困难。
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.