开发者

Graphic scrolling in iPhone SDK

I have a graphic that is 3 times the width of an iphone landscape view. I am trying to auto scroll it so that it appears that it is moving sideways, without using the touchscreen scrolling method. My aim is to maybe have a button you 开发者_运维知识库can press and it moves it left or right across the screen like an animation. I can deal with everything else but am having trouble finding a solution. Any example code would be appreciated or even any info on whether it is possible or not. Thanks. Dave


You can wrap a UIView in an animation block. The animation sweeps the origin value in its frame property from one point to another, over a set period of time.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜