重新创建iOS 7日历UIView动画 [英] Recreating iOS 7 Calendar UIView Animation
问题描述
每个人都知道iOS 7日历应用中的全新动画。您可以在以下简短视频中看到它们: http://vimeo.com/69247779
Everybody knows the brand-new awesome animation inside iOS 7 Calendar app. You can see them in this short video: http://vimeo.com/69247779
我会重新创建类似于创建模态矩形的东西,当用户点击 UIButton
时出现。当用户点击此按钮时,应用程序应移动 UIView
(实际上在 UITableViewCell
内)并在此内移动矩形,但原来的 UIView
应该保持在同一个地方。它需要复制自己,类似的东西。
I would recreating something like that creating a "modal" rectangle that appear when the user taps on a UIButton
. When the user taps on this button the app should move an UIView
(actually inside an UITableViewCell
) and move it within this rectangle, BUT the original UIView
should stay in the same place. It needs to duplicate itself, something alike.
我创建了一个简单的图像来解释这个概念。
I've created a simple image explaining the concept.
如何实现类似的功能这个?
How to implement something like this?
推荐答案
我可能会建议你创建另一个UIView。不要将它添加到主视图中。
i might suggest you to create another UIView. Do not add it to the main view yet.
现在关于您目前正在处理的视图,
now on the view that you're currently working on,
[UIView transitionWithView: self.view duration: 0.5 options: UIViewAnimationOptionsCurveEaseOut animations:^{
[self.view addSubView:createdView]; } completion:nil];
如果您尚未实施,希望这有效。我是初学者,请原谅我是否有任何错误。
Hope this works, if you haven't already implemented. I'm a beginner, excuse me if there's any mistake.
这篇关于重新创建iOS 7日历UIView动画的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!