Monday, 15 August 2011

c++ - ScrollView in pageView -



c++ - ScrollView in pageView -

i have pageview in bottom of each page there scrollview. want pageview doesn't turn when scrollview scrolling. problem is: when scroll (in scrollview) pages turn him!

this may not practice can solve problem: in xcode go project/ cocos2d_libs.xcodeproject/ extensions/ gui/ ccscrollview

in ccscrollview.h add:

void mysetswallowtouch(bool enabled);

in ccscrollview.cpp add:

void scrollview::mysetswallowtouch(bool enabled) { _touchlistener->setswallowtouches(enabled);}

now phone call mysetswallowtouch(true) @ scrollview

scrollview->mysetswallowtouch(true);

you can utilize table view within pageview

c++ cocos2d-x cocos2d-x-3.0

No comments:

Post a Comment