Little fat says something.-----iOS Basics Uiscrollview agent and build Active Architecture only property

Source: Internet
Author: User

General: The agent memory of Uiscrollview is a bit vague today, so check the document and record it, there is the build Active Architecture only property for Xcode compilation is also recorded, after all, Good memory than bad pen, O (∩_∩) o hahaha ~agent for 1.scrollview:
As soon as the scroll is triggered-(void) Scrollviewdidscroll: (Uiscrollview *) ScrollView;    {//NSLog (@ "Scrollviewdidscroll"); NSLog (@ "Contentoffset x is%f,yis%f", Scrollview.contentoffset.x,scrollview.contentoffset.y);}   Start drag View-(void) scrollviewwillbegindragging: (Uiscrollview *) ScrollView; {NSLog (@ "scrollviewwillbegindragging");} Complete drag-(void) scrollviewdidenddragging: (Uiscrollview *) ScrollView willdecelerate: (BOOL) decelerate; {NSLog (@ "scrollviewdidenddragging");}   will start to spin down-(void) scrollviewwillbegindecelerating: (Uiscrollview *) ScrollView; {NSLog (@ "scrollviewwillbegindecelerating");}   The deceleration stops when executed, the hand touches execution execution-(void) scrollviewdidenddecelerating: (Uiscrollview *) ScrollView; {NSLog (@ "scrollviewdidenddecelerating");} The scrolling animation is executed when the code changes, that is, when the setcontentoffset changes-(void) Scrollviewdidendscrollinganimation: (Uiscrollview *) ScrollView; {NSLog (@ "scrollviewdidendscrollinganimation");}   Set the zoomed-in view, if Uiscrollview subview-(UIView *) Viewforzoominginscrollview: (Uiscrollview *) ScrollView; {NSLog (@ "VIEWFOrzoominginscrollview "); return Viewa;} When zoomed out, call-(void) scrollviewdidendzooming: (Uiscrollview *) ScrollView Withview: (UIView *) View Atscale: (float) scale;   {Viewa.frame=cgrectmake (50,0, 100, 400); NSLog (@ "Scale between minimum and maximum. Called in any ' bounce ' animations ');} Scale between minimum and maximum. Called after any ' bounce ' animations//if you are not completely scrolled to the top of the scroll view, you can tap the status bar, and that visual scroll view will always be scrolled to the top, which is the default behavior, you can return no to this method to close it-(BOOL)   Scrollviewshouldscrolltotop: (Uiscrollview *) ScrollView;   {NSLog (@ "Scrollviewshouldscrolltotop"); return YES;}     -(void) Scrollviewdidscrolltotop: (Uiscrollview *) ScrollView; {NSLog (@ "Scrollviewdidscrolltotop");}

2. Understanding of the build Active Architecture only Property
This property is set to Yes, which compiles faster at debug time and compiles only the current version of architecture. When set to No, all versions are compiled. This is the device corresponding to the Architecture:armv6:iPhone 2g/3g,ipod 1g/2garmv7:iphone 3gs/4/4s,ipod 3g/4g,ipad 1g/2g/3garmv7s:iphone5, IPod5 compiled version is backward compatible, such as you set this value to Yes, iphone4 compiled with the ARMV7 version, Iphone5 can also run, but the ARMV6 device will not run. Therefore, the general debug when you can choose to set the yes,release when you want to change to no, to adapt to different devices.

We can add the head of the QQ group together to Exchange learning ~

Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

Little fat says something.-----iOS Basics Uiscrollview agent and build Active Architecture only property

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.