Loading...
Uploaded by NWorksDev on Aug 24, 2009
A quick tutorial on animating UIImageViews with the NSArray method.***************Files Needed: Images:http://i225.photobucket.com/albums/dd91/allyoyo/1.pnghttp://i225.photobucket.com/albums/dd91/allyoyo/2.pnghttp://i225.photobucket.com/albums/dd91/allyoyo/3.png
Howto & Style
Standard YouTube License
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)?
acesamieh 2 months ago
@Chibaboy79 he fixed it -.-
threeamigos321213 5 months ago
can you teach me
abesha121 5 months ago
@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];
gregslife7 10 months ago
is not semicolon is coma!!!!!!!!!!!!!!!!!!!
Chibaboy79 1 year ago
Not works with simulator Iphone 4 apears "Expected ']' before';' token and
Missing sentinel in function call
All that crap to animate 3 pictures -;l
colombiak 1 year ago
It works perfect! You are awesome. Keep it up!
bowlofnoodl3 1 year ago
@ronbowalker Photo file type must be PNG.
Delizsieg 1 year ago
@ploglet
I am on 4.o as well and it works only in the simulator. Loaded on iPhone it is blank in the view.
ronbowalker 1 year ago
Load more suggestions
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)?
acesamieh 2 months ago
@Chibaboy79 he fixed it -.-
threeamigos321213 5 months ago
can you teach me
abesha121 5 months ago
@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];
gregslife7 10 months ago
is not semicolon is coma!!!!!!!!!!!!!!!!!!!
Chibaboy79 1 year ago
Not works with simulator Iphone 4 apears "Expected ']' before';' token and
Missing sentinel in function call
Chibaboy79 1 year ago
All that crap to animate 3 pictures -;l
colombiak 1 year ago
It works perfect! You are awesome. Keep it up!
bowlofnoodl3 1 year ago
@ronbowalker Photo file type must be PNG.
Delizsieg 1 year ago
@ploglet
I am on 4.o as well and it works only in the simulator. Loaded on iPhone it is blank in the view.
ronbowalker 1 year ago