Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Mockup & CodeGen, iPhone & iPad
($9.99)

Make your own iPhone apps
and run them live!
(free)

Manu
($0.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 02-07-2010, 05:25 PM   #2 (permalink)
ChrisMayer
Registered Member
 
ChrisMayer's Avatar
 
Join Date: Aug 2009
Posts: 238
Default

Assuming your sprite is a UIImageView:

Code:
myImageview.animationImages = [NSArray arrayWithObjects:[UIImage imageNamed:@"frame_1.png"],[UIImage imageNamed:@"frame_2.png"],nil];
myImageview.animationDuration=0.5;myImageview.animationRepeatCount=0;[myImageview startAnimating];
where animationDuration=0.5 is the total duration of the animation in seconds.
__________________
ChrisMayer is offline   Reply With Quote
 

» Advertisements
» Online Users: 338
15 members and 323 guests
ADY, apatsufas, chemistry, Fit4him, headkaze, ilmman, MarkC, marto1914, Meoz, Promo Dispenser, sneaky, Sunny46, tgjorgoski, Thrillhouse1919, vogueestylee
Most users ever online was 1,187, 10-11-2011 at 08:09 AM.
» Stats
Members: 158,877
Threads: 89,222
Posts: 380,718
Top Poster: BrianSlick (7,129)
Welcome to our newest member, peterkessler45
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 09:58 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.