What is the difference between the two scrollview proxy methods that are executed after the rolling stop? // Touch the screen, drag the screen, and release the screen. This function is triggered when the screen is stopped. -(Void) scrollviewdidenddragging :( uiscrollview *) scrollview willdecelerate :( bool) decelerate
{
If (! Decelerate ){
}
}
-(Void) Scrollviewdidenddecelerating :(Uiscrollview*) Scrollview
{
}
The first didenddragging task starts when the drag is stopped.
Second: Execute the command when didenddecelerating slows down and stops.
// Called on finger up if the user dragged. decelerate is true if it will continue moving afterwards
-(Void) Scrollviewdidenddragging :(Uiscrollview*) Scrollview willdecelerate :(Bool) Decelerate;
-(Void) Scrollviewdidenddecelerating :(Uiscrollview*) Scrollview;// Called when scroll view grinds to a halt
That is to say, the execution time of the two is different. scrollview is the proxy that stops the execution and then stops the execution.
Normally, you can drag and drop quickly, and both functions will respond. But if you drag it slowly, when there is no acceleration, you will only tune the above function instead of the following one!