美文网首页
UIScrollView

UIScrollView

作者: 随风飘荡的小逗逼 | 来源:发表于2016-09-29 15:24 被阅读10次

UIScrollView的重要属性:

@property(nonatomic)CGPointcontentOffset;//

default CGPointZero

// 这个属性用来表示UIScrollView的滚动位置。

@property(nonatomic)CGSizecontentSize;// default CGSizeZero

// 这个属性用来表示UIScrollVIew内容的尺寸,滚动的范围(能滚多远)

@property(nonatomic)UIEdgeInsetscontentInset;// default UIEdgeInsetsZero. add additional scroll area around content

//  这个属性是用来设置UIScrollView四个外边距的。

图片展示UIScrollView的三个重要属性

UIScrollView的代理

代理的用途:

1、可以让一个对象A监听另一个对象B的状态。

一般B对象用来监听A对象的三个状态,开始滚动、停止滚动、滚动到某个位置。

相关文章

网友评论

      本文标题:UIScrollView

      本文链接:https://www.haomeiwen.com/subject/rxncyttx.html