Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iOS: how to stop text animation in partial curl

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?

like image 844
dhrm Avatar asked Mar 16 '12 16:03

dhrm


1 Answers

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.

like image 163
rickster Avatar answered Sep 28 '22 10:09

rickster