1.UIScrollView is a view,uiview can scroll, the sub-class Uiscrollview Expand the function of the rolling side. 2.UIScrollView is the base class for all scrolling views. Subsequent views such as Uitableview,uitextview are inherited from the class. 3.UIScrollview is mainly dedicated to more than two square noodles:
(1). Scroll: Contentsize? When it is greater than frame.size, it is able to scroll.
(2). Zoom: With scale, you can specify a zoom multiplier.
Uiscrollview related properties of scrolling
1.contentSize//define content area? Small, decide if you can slide
2.contentOffset//View upper left? Offset from the origin of the coordinate point
3.scrollsToTop//slide to top (point status bar)
4.pagingEnabled//Whether the full screen flip (default is NO)
5.bounces//Border rebound (default Yes)
6.scrollEnabled//Can scroll
7.showsHorizontalScrollIndicator//control whether to show the horizontal direction of the scroll bar
8.?showverticalscrollindicator//control whether to show the vertical direction of the scroll bar
9.alwaysBounceVertical Alwaysbouncehorizontal
Controls the vertical direction of the border if it bounces.
10.alwaysBounceHorizontal//control? level? Direction encountered whether the border bounces
??
Uiscrollview related properties for scaling
1.minimumZoomScale//Shrink small the most small proportion
2.maximumZoomScale//Put on the big one? scale
3.zoomScale//settings change? scale
4.zooming//Determine if scaling is in progress
5.bouncesZoom//Whether the control will rebound when zooming
Establish agent: Uiscrollview Rolling Agent method:
1. Scrolling will trigger
- (void)scrollViewDidScroll:(UIScrollView*)scrollView
2. Trigger when dragging is started
- (void)scrollViewWillBeginDragging:(UIScrollView *)scrollView
3. Trigger when drag is over
- (void)scrollViewDidEndDragging:(UIScrollView*)scrollView willDecelerate:(BOOL)decelerate
4. Trigger when starting deceleration
- (void)scrollViewWillBeginDecelerating:(UIScrollView *)scrollView
5. Trigger at end of deceleration (stop time)
- (void)scrollViewDidEndDecelerating:(UIScrollView *)scrollView
Proxy method for Uiscrollview scaling
1. Complete the release, small trigger
- (void)scrollViewDidEndZooming:(UIScrollView*)scrollView withView:(UIView *)view atScale:(float)scale
2. Specify a Uiscrollvie W? sub-view can be put on the big shrink? Small
- (UIView *)viewForZoomingInScrollView:(UIScrollView *)scrollView
Uipagecontrol
1.UIPageControl similar to Uilabel
2. How to refer to the current page (code)
3. Usually in conjunction with the Uiscrollview
4.currentPage//Current page
5.numberOfPages//Specify the number of page polygons
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
Uiscrollview scrolling View by page Uipagecontrol