Changing location after CommitAnimations
- by Will Youmans
I'm using the following code to move a UIImageView:
shootImg.image = [UIImage imageNamed:@"Projectile Left 1.png"];
[UIView beginAnimations:nil context:nil];
shootImg.center = CGPointMake(shootImg.center.x+1000, shootImg.center.y);
[UIView commitAnimations];
This works but what I want to do is after [UIView CommitAnimations]; I want to set the…