How can I make uiscrollview infinite in iOS?

后端 未结 8 1322
天涯浪人
天涯浪人 2020-12-08 01:27

I want to scroll like that 1 2 3 1 2 3

I have some buttons suppose 10 which i want to show on endless scroll.

 numbercolors=[[NSMutableArray alloc         


        
8条回答
  •  太阳男子
    2020-12-08 02:02

    I have written an infinite rolling UIscrollView subclass which accomplishes this task. It is based on the Apple StreetScroller sample. You simply provide it with your button titles and whether you want a horizontal or vertical scroll. You can also set many other options. It is posted with documentation and a sample project on my github. Here is the link...

    http://github.com/ninefifteen/SSRollingButtonScrollView

提交回复
热议问题