UIScrollViewDelegate related methods,

Source: Internet
Author: User

UIScrollViewDelegate related methods,

UIScrollViewDelegate

 

-(Void) scrollViewDidScroll :( UIScrollView *) scrollView; // this method is called when scrollview is rolled. This method is called when any offset value is changed.

-(Void) scrollViewDidZoom :( UIScrollView *) scrollView; // called During Scaling

-(Void) scrollViewWillBeginDragging :( UIScrollView *) scrollView; // a valid scroll (if the finger is not opened, a valid scroll is called once.

-(Void) scrollViewWillEndDragging :( UIScrollView *) scrollView withVelocity :( CGPoint) velocity targetContentOffset :( inout CGPoint *) targetContentOffset; // a valid scroll is called once when the finger is released

-(Void) scrollViewDidEndDragging :( UIScrollView *) scrollView willDecelerate :( BOOL) decelerate; // a valid scroll, run the command once when the finger leaves the screen (decelerate indicates whether the screen continues to scroll by inertia when the finger is opened)

-(Void) scrollViewWillBeginDecelerating :( UIScrollView *) scrollView; // slide to slow down

-(Void) scrollViewDidEndDecelerating :( UIScrollView *) scrollView; // scroll to stop

-(Void) scrollViewDidEndScrollingAnimation :( UIScrollView *) scrollView; // call after the scrolling view animation is completed

-(UIView *) viewForZoomingInScrollView :( UIScrollView *) scrollView; // zoom View

-(Void) scrollViewWillBeginZooming :( UIScrollView *) scrollView withView :( nullable UIView *) view; // view to be scaled (only one valid scaling operation is performed)

-(Void) scrollViewDidEndZooming :( UIScrollView *) scrollView withView :( nullable UIView *) view atScale :( CGFloat) scale; // view zoom ends

-(BOOL) scrollViewShouldScrollToTop :( UIScrollView *) scrollView; // you can scroll to the top when you click the status bar.

-(Void) scrollViewDidScrollToTop :( UIScrollView *) scrollView; // call this method when scrolling to the top

UIScrollViewAccessibilityDelegate

-(NSString *) accessibilityScrollStatusForScrollView :( UIScrollView *) scrollView; // a custom string is returned when the view is scrolled.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.