PDA

View Full Version : About scrolling a label




iphonejudy
Jan 10, 2009, 12:18 AM
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



dejo
Jan 10, 2009, 12:39 AM
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
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.

chbeer
Jan 10, 2009, 03:07 AM
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.