Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [UIView beginAnimations:nil context:NULL];
- [UIView setAnimationDuration:ANIMATIONDURATIONINSECONDS];
- [UIView setAnimationDelegate:self];
- [UIView setAnimationDidStopSelector:@selector(yourAnimationHasFinished:finished:context:)];
- // Change property or properties here
- [UIView commitAnimations];
- - (void)yourAnimationHasFinished:(NSString *)animationID finished:(BOOL)finished context:(void *)context;
- [animation setValue:"firstAnimation" forKey:@"name"];
- - (void)animationDidStop:(CAAnimation*)animation finished:(BOOL)finished {
- if([[animation valueForKey:@"name"] isEqual:@"firstAnimation"] && finished) {
- ...
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement