nicklockwood/iCarousel — Issue #64: carouselDidEndScrollingAnimation block UIView beginAnimations
Author: muppetkermit
Created: 2011-12-03 09:53:04+00:00
State: open

on carouselDidEndScrollingAnimation delegate method, i couldnt make uiview animate. View object jumps to destination but it works fine with delay call. I tryed to explain problem blow, any idea what would cause it?

Thanks in advence.

- (void) makeAnim{
[UIView beginAnimations:nil context:i];
[UIView setAnimationDuration:0.5];
navigation.frame = CGRectOffset(navigation.frame, 0, 430);
[UIView commitAnimations];
}
- (void) carouselDidEndScrollingAnimation:(iCarousel *)carousel{
//[self makeAnim]; // this method doesnt work here. But its fine with the hack below.
// Ugly hack
[self performSelector:@selector(makeAnim) withObject:nil afterDelay:0.0001];
}