Contentsize is an area where scrollview can be scrolled, such as frame = (0, 0, 320, 480) Contentsize = (960), which means that your scrollview can scroll up and down, and the scrolling area is twice times the size of the frame.
Contentoffset is the offset of the ScrollView current display area vertex relative to the frame vertex, such as the last example you pulled to the bottom, Contentoffset is (0, 480), that is, y offset 480
Contentinset is the vertex of the ScrollView Contentview relative to the ScrollView position, for example your contentinset = (0, 100), then your contentview is from ScrollView ( 0, 100) Start showing
In addition UITableView is the subclass of Uiscrollview, they are different in the above attribute, Tabelview Contentsize is implemented by the following methods.
-(Nsinteger) numberofsections;
-(Nsinteger) Numberofrowsinsection: (nsinteger) Section;
-(CGFloat) TableView: (UITableView *) TableView Heightforrowatindexpath: (Nsindexpath *) Indexpath;
-(CGFloat) TableView: (UITableView *) TableView heightforheaderinsection: (nsinteger) Section;
-(CGFloat) TableView: (UITableView *) TableView heightforfooterinsection: (nsinteger) Section;
It will automatically calculate all the heights and to make the height of the contentsize for it.
For example you're in the delegate method
-(Nsinteger) TableView: (UITableView *) TableView numberofrowsinsection: (nsinteger) Section {
return 100;
}
So the contentsize of your Tabelview is (320, 4400)
Several properties of ScrollView Contentsize Contentoffset Contentinset