It’s easy enough to animate a view:
[UIView animateWithDuration:1.0 animations:^{theView.center = newCenter; theView.alpha = 0;} completion:^(BOOL finished){ [theView removeFromSuperview]
The problem is that when I add it as a preview, I want it to fade out and already look like it is moving. Now he appears immediately, then moves and disappears.
So, I need to set the initial alpha to zero, fade quickly, as it moves, and then fade. Is this possible with UIView animation? Can't I have two competing animation blocks working on the same object?
source share