UIScrollView的属性
- @property(nonatomic) CGPoint contentOffset;
- 这个属性用来表示UIScrollView滚动的位置(其实就是内容左上角与scrollView左上角的间距值)
- @property(nonatomic) CGSize contentSize;
- 这个属性用来表示UIScrollView内容的尺寸,滚动范围(能滚多远)
- @property(nonatomic) UIEdgeInsets contentInset
- 这个属性能够在UIScrollView的4周增加额外的滚动区域,一般用来避免scrollView的内容被其他控件挡住
UIPageControl的属性
- @property(nonatomic) NSInteger numberOfPages; //一共有多少页
- @property(nonatomic) NSInteger currentPage; //当前显示的页码
- @property(nonatomic) BOOL hidesForSinglePage; //只有一页时,是否需要隐藏页码指示器
- @property(nonatomic,retain) UIColor *pageIndicatorTintColor; //其他页码指示器的颜色
- @property(nonatomic,retain) UIColor *currentPageIndicatorTintColor; //当前页码指示器的颜色