[英]How to animate a view from top to bottom and stacking that view properly?
I want to, as properly as possible, animate a view from top to bottom. 我想尽可能正确地使视图从上到下进行动画处理。 Then do the appropriate magic to handle memory allocations and such.
然后做适当的魔术处理内存分配等。
In other words, I want an inverse 换句话说,我想求逆
UIModalTransitionStyleCoverVertical
This modalTransitionStyle
pops the view up from bottom, while what I'd like it to do is arrive by airplane. 这个
modalTransitionStyle
从底部弹出视图,而我希望它是通过飞机到达的。
I've looked into some black magic CATransition
, but I can't for the life of me find a proper way of handling memory and dismissing (or "popping off") the view with this method. 我研究了一些黑魔法
CATransition
,但是我一生无法找到一种适当的方式来处理内存并使用这种方法消除(或“弹出”)视图。
A solution as close to "as Steve Jobs intended" is much preferred. 最好选择接近“按照史蒂夫·乔布斯的意图”的解决方案。
PS: The solution does not need to deal with the view as modal. PS:该解决方案无需将视图作为模态处理。 Actually dealing with it as a new "card" on the stack would be best.
实际上,最好将其作为堆栈上的新“卡”来处理。
How about UIView UIView怎么样
+ (void)transitionFromView:(UIView *)fromView toView:(UIView *)toView duration:(NSTimeInterval)duration options:(UIViewAnimationOptions)options completion:(void (^)(BOOL finished))completion
or 要么
+ (void)transitionWithView:(UIView *)view duration:(NSTimeInterval)duration options:(UIViewAnimationOptions)options animations:(void (^)(void))animations completion:(void (^)(BOOL finished))completion
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.