iOS Development Uiscrollview Usage (1) Common properties:
1) @property (nonatomic) Cgpointcontentoffset; This property is used to display uiscrollview scrolling position
2) @property (nonatomic) cgsizecontentsize; This property is used to gauge the contents of Uiscrollview, and the rolling range (how far can I roll)?
3) @property (nonatomic) Uiedgeinsetscontentinset; This property is capable of adding additional scrolling areas for 4 weeks of Uiscrollview
(2) Other properties:
1) @property (nonatomic) BOOL bounces; Set Uiscrollview If spring effect is required
2) @property (nonatomic,getter=isscrollenabled) boolscrollenabled; Sets whether Uiscrollview can scroll
3) @property (nonatomic) BOOL showshorizontalscrollindicator; Do you have a display? Horizontal scroll bar
4) @property (nonatomic) BOOL showsverticalscrollindicator; Do you want to show the vertical scroll bar?
(3). Attention Point
• If Uiscrollview cannot scroll, the following may be the reason:
(1) No setup contentsize
(2) scrollenabled = NO
(3) No Touch event Received: userinteractionenabled = no
(4) No cancellation of AutoLayout function (if you want to scrollview scrolling, you must cancel AutoLayout)
The use of iOS development Uiscrollview