Autoscrolling in a UIScrollview

前端 未结 3 802
借酒劲吻你
借酒劲吻你 2021-01-27 19:42

I have been only using Xcode 5 for a little while now and I need help when it comes to auto scrolling a UIScrollView. I am using a single view application. I need t

3条回答
  •  时光说笑
    2021-01-27 20:23

    I can see a few options:

    1) suggested by Fogmeister, use Sprite Kit instead.

    2) see setContentOffset

    3) just use a normal view as parent, then have another child view on top with the full content (would be longer than the parent view), create a NSTimer to periodically call a method which scrolls the child view in whatever direction and speed as required. Note that might need something on top to mask around the child view from showing the suppose-to-be-hidden sections of the child view.

    Hope this helps

提交回复
热议问题