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 06-01-2009, 05:30 AM   #3 (permalink)
iwind
New Member
 
Join Date: May 2009
Location: Beijing, CN
Posts: 23
Send a message via MSN to iwind Send a message via Skype™ to iwind
Default

Quote:
Originally Posted by Jason Rogers View Post
hi
I would go for a system like this

1) store the delay you want to apply (I would put in the detail of you custom frame)
2)do a for(MyCustomView *inst in TheCollectionThatGroupsMyListOfElement)
in which you can happely launch a timer that will animate you View and set the delay of the timer to the value stored in you custom view

Timer Programming Topics for Cocoa: Using Timers

I don't know what you mean by sprite ut if you mean a composed view (icon + text + another iamge etc

then just create a custom UIView in wich you build your custom display

i did like that to create a image with some text underneath

hope it helped

jason
Thank you for help. The "sprite" is a word in cocos2d library, you can check it out here:
cocos2d-iphone - Google Code

A sprite can flip, scale, move and do other actions, and it can have some children(other sprites).

I want to use the library to improve my development process, it seems that i need to implement sprite animation myself.But i just think if there is a way to do it with cocos2d Animation class.

NSTimer class is helpful to me, thanks.
iwind is offline   Reply With Quote
 

» Advertisements
» Stats
Members: 158,677
Threads: 89,156
Posts: 380,393
Top Poster: BrianSlick (7,110)
Welcome to our newest member, Buster2000
Powered by vBadvanced CMPS v3.1.0

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