开发者

circular scrollview through NSTimer?

I have created sample circular UIScrollview.it works fine.but i want to scroll through NSTimer automatically.when I开发者_运维知识库 implemented , after reaching last item in scrolliview, it did not repeat like looping.any help please?


in that animate method write below condition i think it will work

scrollView.contentOffset.x=(scrollView.contentOffset.x>=scrollView.contentSize.width-scrollView.frame.size.width)?0:scrollView.contentOffset.x+5;
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜