iOS:如何在部分卷曲中停止文本动画 [英] iOS: how to stop text animation in partial curl
问题描述
我在我的iOS应用程序中使用部分卷曲模态。请观看此视频:
http://vimeo.com/38643030
I'm using a partial curl modal in my iOS application. Please see this video: http://vimeo.com/38643030
在部分卷曲过渡期间,圆形矩形按钮中的文字也在移动。如何停止此操作?
During the partial curl transition, the text in the round rect buttons is moving too. How can I stop this?
推荐答案
放置 [self.view layoutIfNeeded]
在通过curl动画显示的视图控制器的 -viewDidLoad
实现中。这使得按钮&他们的内容在动画开始之前布置一次,而不是在动画期间尝试做它的布局(并且重做它随着事物改变)。
Put [self.view layoutIfNeeded]
in the -viewDidLoad
implementation for the view controller that's being shown via the curl animation. This makes the buttons & their contents lay out once before the animation starts instead of trying to do its layout (and redo it as things change around it) during the animation.
这篇关于iOS:如何在部分卷曲中停止文本动画的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!