About scrolling a label

Discussion in 'iOS Programming' started by iphonejudy, Jan 9, 2009.

  1. iphonejudy
    Expand Collapse
    macrumors 6502

    iphonejudy

    Joined:
    Sep 12, 2008
    #1
    Hi,


    I want to scroll text automaticaly like flash news display.

    In java we use thread and timer for moving text.

    1) In Objective -c is it possible to move text?

    2) If it is, means what is the concept we need to use?


    Can anybody please tell me?

    Thanks
    judy
     
  2. dejo
    Expand Collapse
    Moderator

    dejo

    Staff Member

    Joined:
    Sep 2, 2004
    Location:
    The Centennial State
    #2
    Should be doable. Might want to look into using NSThread and NSTimer.

    1) Yes. Look at UILabel's (UIView's) frame property.

    2) See my hints above.
     
  3. chbeer
    Expand Collapse
    macrumors member

    chbeer

    Joined:
    Sep 22, 2008
    Location:
    Berlin
    #3
    Maybe you should consider reading the documentation instead of asking every detailed aspect. Before starting to build software with a new language and framework you should get familiar with it.

    On the iPhone there is a very nice animation API included. Have a look at UIView class reference, there is an own part for animating views. For more complex animations, there is the Core Animation framework.
     

Share This Page