PDA

View Full Version : controling animation




imaumac
Dec 8, 2008, 12:18 AM
HI, i have a small question
where can I find some help to make a slide like the picture down here to control the movement of my animation (png secuence)
the animation are 10 small png pictures.....(secuence)

let me explain again (in other words)
if you slide the finger to the right (100%), show the png number 10
if you slide the finger to 75% on the slide, then show the png number 7
or if you slide the finger to the 20% of the slide, then show the png number 2

etc ... etc

is that posible?
some idea or suggestion please....
any are welcome !

http://www.1572-8.com/fotos/zzz-dev-fotos/dogiphone.jpg



chbeer
Dec 8, 2008, 01:42 AM
You can get notified about changes in the UISlider and you can change the image of a UIImageView. What is your question?

imaumac
Dec 8, 2008, 09:43 AM
What is your question?

thanks for answer
My big question as a new developer is
Where can I found the code to do it

I have all on my mind, but I don't know the code
I just know a little of Objetive-C

Help please
And sorry

SqueegyX
Dec 8, 2008, 12:19 PM
Learn Objective-C better (Aaron Hillegas book is excellent)
Look up the reference for UISlider
Look up the reference for UIImageView


The rest should be pretty self explanatory. What you describe is not difficult to achieve.

chbeer
Dec 9, 2008, 12:08 AM
SqueegyX' answer was the long version of mine. I mentioned all controls you need and I thought you go and look at the very good documentation and the examples.

You can't expect us to give the code for your project. There is some work to do...

firewood
Dec 9, 2008, 12:15 AM
There's an easy slider and imageview video tutorial somewhere on iphonedevcentral.org


.