Skip to content

CAScrollViewDelegate

9miao Mobile Game edited this page Jun 27, 2014 · 2 revisions

CAScrollViewDelegate Detailed Description

Class Description

It’s CAScrollView agent class, defines four ports that respond to scrollView related operation, and declares a port that is used to remove agent.

Method

Access modifier

Method name

Description

Public

scrollViewDidScroll

Respond to view scroll

Public

scrollViewWillBeginDragging

Is called when scroll starts

Public

scrollViewDidEndDragging

Is called when scroll ends

Public

scrollViewDidZoom

Respond to view scale

Method Description

virtual void scrollViewDidScroll(CAScrollView view){}*
Return value: void
Description: any scroll operation on view will trigger this port.

virtual void scrollViewWillBeginDragging(CAScrollView view){}*
Return value: void
Description: it’s called when you touch view and are ready to scroll

virtual void scrollViewDidEndDragging(CAScrollView view){}*
Return value: void
Description: it’s called when you finish scroll and is ready to leave view

virtual void scrollViewDidZoom(CAScrollView view){}*
return value: void
description: it’s called when you scale view.

Clone this wiki locally