controling animation

Discussion in 'iOS Programming' started by imaumac, Dec 7, 2008.

  1. macrumors member

    Joined:
    Oct 15, 2008
    #1
    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 !

    [​IMG]
     
  2. macrumors member

    chbeer

    Joined:
    Sep 22, 2008
    Location:
    Berlin
    #2
    You can get notified about changes in the UISlider and you can change the image of a UIImageView. What is your question?
     
  3. thread starter macrumors member

    Joined:
    Oct 15, 2008
    #3
    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
     
  4. macrumors regular

    Joined:
    Mar 24, 2008
    #4
    1. Learn Objective-C better (Aaron Hillegas book is excellent)
    2. Look up the reference for UISlider
    3. Look up the reference for UIImageView

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

    chbeer

    Joined:
    Sep 22, 2008
    Location:
    Berlin
    #5
    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...
     
  6. macrumors 603

    Joined:
    Jul 29, 2003
    Location:
    Silicon Valley
    #6
    There's an easy slider and imageview video tutorial somewhere on iphonedevcentral.org


    .
     

Share This Page