0

可以使用 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];
4

0 回答 0