如何在cocos2d中实现分层方向的scrollview

时间:2013-09-24 05:17:50

标签: cocos2d-iphone

可以使用ccscrolllayer

CCScrollLayer *scroller = [[CCScrollLayer alloc] initWithLayers:[NSMutableArray arrayWithObjects: pageoneScroll,pageTwoScroll,pageThreeScroll,pageFourScroll,pageFiveScroll,pageSixScroll,pageSeventhScroll,pageEightScroll,pageNinethScroll,pageTenthScroll,pageEleventhScroll,pageTventhScroll,pageThirteenthScroll,pageFourteenthScroll,nil] widthOffset: 0];

// finally add the scroller to your scene
[self addChild:scroller];

0 个答案:

没有答案