当前位置: 动力学知识库 > 问答 > 编程问答 >

ios - Making UIScrollView bounce when cursor left off at certain position

问题描述:

Is there a way to make scroll view bounce and settle if you stop the scroll between two elements in the scroll view?

网友答案:

Yes, it's called Pagination, you basically need to set the contentSize and then set self.pagingEnabled = YES; in Objective C (or self.pagingEnabled = true if using Swift)

分享给朋友:
您可能感兴趣的文章:
随机阅读: