IOS开发- UIScrollView

来源:互联网 发布:哪个软件上有原味 编辑:程序博客网 时间:2024/06/05 14:46

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;
是否显示垂直滚动条




0 0
原创粉丝点击