核心动画在中间翻转视图并替换内容
我试图在每个表视图单元格中放置一个动画。
该视图应该采用 NSString 数组。如果它有超过 1 个字符串,我想要一个动画,这是我不太确定的。
我有一个 UILabel,我想做的是垂直翻转,但它不应该是整个视图。我希望上半部分落下(并且下一个字符串 uilabel 的下半部分落下) 看看这张图片 http://www.fazyluckers.com/extensions /InlineImages/image.jpg.php?AttachmentID=209 但每个 uilabel 而不是字符。
所以,我想有两个问题。
如何激活中间的翻转? (我已经设法使用 CABasicAnimation 实现垂直翻转)
对于 iOS 3(我知道它很旧,但有些人仍在使用它)使用更新的下一个字符串重复动画的最佳方法是什么?是在animationDidFinish...并更新字符串并再次开始相同的动画吗?
I'm trying to put a animation in each table view cell.
The view should take an array of NSStrings. If it has more than 1 string i want a animation, and this is what I'm not really sure of.
I have a UILabel, what I want to do is to have a vertical flip, but it shouldn't be the entire view. I want the top half to fall down (and bottom half of the next strings uilabel to fall down over it)
Look on this image http://www.fazyluckers.com/extensions/InlineImages/image.jpg.php?AttachmentID=209 but per uilabel instead of character.
So, I guess there are two questions.
How do I active the flip in the middle? (I already managed to get the vertical flip work with a CABasicAnimation)
For iOS 3 (I know its old, but some ppl still uses it) whats the best way to repeat the animation with the updated next string? is it in animationDidFinish... and update the strings and start the same animation again?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
看看这个。
http: //www.voyce.com/index.php/2010/04/10/creating-an-ipad-flip-clock-with-core-animation/
Take a look at this.
http://www.voyce.com/index.php/2010/04/10/creating-an-ipad-flip-clock-with-core-animation/