XCode iPhone Tutorial - Animating UIImageView with NSArray

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
21,697
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Aug 24, 2009

Category:

Howto & Style

Tags:

License:

Standard YouTube License

  • likes, 4 dislikes

Link to this comment:

Share to:
see all

All Comments (17)

Sign In or Sign Up now to post a comment!
  • how can you do this with a mutable array so that it will display the images randomly?

    how can you code this if you want to compare if a user clicked on the right image (GAME)?

  • @Chibaboy79 he fixed it -.-

  • can you teach me

  • @Chibaboy79 here's what it should be player.animationImages = [NSArray arrayWithObjects:  [UIImage imageNamed:@"run1.png"], [UIImage imageNamed:@"run2.png"], [UIImage imageNamed:@"run3.png"], [UIImage imageNamed:@"run4.png"], [UIImage imageNamed:@"run5.png"], [UIImage imageNamed:@"run6.png"],nil]; player.animationDuration = 1; player.animationRepeatCount = 0; [player startAnimating];

  • is not semicolon is coma!!!!!!!!!!!!!!!!!!!

  • Not works with simulator Iphone 4 apears "Expected ']' before';' token and

    Missing sentinel in function call

  • All that crap to animate 3 pictures -;l

  • It works perfect! You are awesome. Keep it up!

  • @ronbowalker Photo file type must be PNG. 

  • @ploglet

    I am on 4.o as well and it works only in the simulator. Loaded on iPhone it is blank in the view.

Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more