读书人

iPhone开发笔记(14)UIScrollView的边

发布时间: 2012-07-28 12:25:13 作者: rapoo

iPhone开发笔记(14)UIScrollView的边界处理问题

在iPhone开发笔记(5)scrollView和pageControl的搭配使用中忽略了UIScrollView的边界处理问题。在UIScrollView中有一个重要的属性bounces,下面是苹果的开发文档中对这个属性的定义。

bounces

A Boolean value that controls whether the scroll view bounces past the edge of content and back again.

@property(nonatomic) BOOL bounces
Discussion

If the value of this property is YES, the scroll view bounces when it encounters a boundary of the content. Bouncing visually indicates that scrolling has reached an edge of the content. If the value is NO, scrolling stops immediately at the content boundary without bouncing. The default value is YES.

Availability
读书人网 >Iphone

热点推荐