UIView animation
UIView animation
- Subject: UIView animation
- From: Benjamin BERTRAND <email@hidden>
- Date: Sun, 6 Apr 2008 23:17:21 +0200
Hi,
I'm new to cocoa and have started to develop a board game for the
iPhone.
I've been looking at the "ColorSlidingPuzzle" example provided by Apple.
I managed to animate a piece move using the function:
- (void) movePiece:(Move*) move {
[UIView beginAnimations:nil context:nil];
[UIView setAnimationDuration:0.50];
// Change the position of my piece (an UIImageView)
[UIView commitAnimations];
}
Now here is my problem. I have an array with several moves that I want
to display.
Doing a for loop obviously doesn't work. Only the last move is
displayed (because nothing is updated until returning to the run loop
I guess)...
for(Move *move in moveArray)
[self movePiece:move];
How can I display this succession of moves?
Thanks
Benjamin
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden