UIScrollView 常见属性
•@property(nonatomic)
CGPoint contentOffset;
这个属性用来表示UIScrollView滚动的位置
•@property(nonatomic)
CGSize contentSize;
这个属性用来表示UIScrollView内容的尺寸,滚动范围
•
•@property(nonatomic)
UIEdgeInsets contentInset;
这个属性能够在UIScrollView的四周增加额外的滚动区域
图示:
•@property(nonatomic)
BOOL bounces;
•设置UIScrollView是否需要弹簧效果
•@property(nonatomic,getter=isScrollEnabled) BOOL scrollEnabled;
设置UIScrollView是否能滚动
•
•@property(nonatomic) BOOL showsHorizontalScrollIndicator;
是否显示水平滚动条
•@property(nonatomic) BOOL showsVerticalScrollIndicator;
是否显示垂直滚动条