• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
UIView animation
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • [Moderator] Re: UIView animation
      • From: Scott Anguish <email@hidden>
  • Prev by Date: Re: Menu Key Equivalents Not Displayed
  • Next by Date: Re: Scaling a window background image quickly
  • Previous by thread: Re: Menu Key Equivalents Not Displayed
  • Next by thread: [Moderator] Re: UIView animation
  • Index(es):
    • Date
    • Thread