jsb scrollview

How to realize checkpoint choice using jsb scrollview? any one knows?

scrollView.setContentOffset(cc.p(-gWinSize.width*(page-1),0),true);

like the code above which function should I write ?
Thanks!

You can still use the setContentOffset function.
There are also bindings for this function in jsb_cocos2dx_extension_auto.cpp.

I means where should I write this function ,like onTouchesBegan(){} or onTouchesEnded(){}, However ,those functions can’t work in scrollview
Shujun Qiao wrote:

You can still use the setContentOffset function.
There are also bindings for this function in jsb_cocos2dx_extension_auto.cpp.

This problem has been sloved , we should use the code below ,so we can call onTouchesBegan(){} or onTouchesEnded(){}

     onEnter:function(){
        this._super();
        this.setTouchEnabled(true);
     }