Ui_07 Uiscrollview, Uipagecontrol

Source: Internet
Author: User

?, Uiscrollview's constant? properties

Uiscrollview is the base class for all scrolling views. Subsequent views such as UITableView, Uitextview, and so on, are inherited from the class.

1, Uiscrollview core? function

Scrolling: Contentsize in Frame.size, can scroll. Zoom:? With zoom, you can specify a zoom multiplier.

2. Uiscrollview Scrolling related properties

    • Contentsize//define content area??, decide if you can slide

    • Contentoffset//view top left? Offset from the origin of the coordinate

    • Scrollstotop//Sliding to the top (Point status bar)

    • pagingenabled//whether full screen flipping

    • Bounces//Border rebound

    • Scrollenabled//is able to scroll

    • Showshorizontalscrollindicator//control is not obvious?? Flat-to-vertical scroll bar

    • Showverticalscrollindicator//control is not obvious? Vertical scroll bar

    • Alwaysbouncevertical//control vertical? To see if the border bounces

    • Alwaysbouncehorizontal//control flat? To see if the border bounces

3. Uiscrollview Scaling related properties

    • Minimumzoomscale//Shrinkage of the most?? Cases

    • Maximumzoomscale//Put the most?? Cases

    • Zoomscale//Setting Change example

    • Zooming//Judging is in progress? Scaling Bounce

    • Bounceszoom//control whether the zoom will rebound

    • To achieve scaling, you also need to implement delegate, which specifies who the Zoomed view is.

Scaling in the *uiscrollview is scaled contentsize

* When a frame is set Uiscrollview a neutron View, it is relative to the Uiscrollview frame, and contentsize is irrelevant.

Uiscrollview, the regular agent of the law

1, Uiscrollview rolling agent method

Scrolling will trigger

-(void) Scrollviewdidscroll: ( Uiscrollview *) ScrollView

Triggers when dragging starts

-(void) scrollviewwillbegindragging: (Uiscrollview *) ScrollView

Trigger at end of drag

-(void) scrollviewdidenddragging: (Uiscrollview *) ScrollView willdecelerate: (BOOL) decelerate

Trigger when starting to slow down

-(void) scrollviewwillbegindecelerating: (Uiscrollview *) ScrollView

triggered when stopped

-(void) scrollviewdidenddecelerating: (Uiscrollview *) ScrollView

2, Uiscrollview scaling Agent method

Complete the drop-down trigger

- (void) scrollviewdidendzooming: (Uiscrollview *) ScrollView Withview: (UIView *) View Atscale: (float) Scale

Specify a Uiscrollview ? view can be set to shrink ?

-(UIView *) Viewforzoominginscrollview: (Uiscrollview *) ScrollView

Third, the Uipagecontrol?

Uipagecontrol is similar to Uilabel, which refers to the current section? (code), usually in conjunction with the Uiscrollview?.

CurrentPage//Current?

Numberofpages//designation?? The number

Iv. the combination of Uipagecontrol and Uiscrollview?


Ui_07 Uiscrollview, Uipagecontrol

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.