摘要:
类似于iphone的主桌面,下面有一排小圆点的指示器,指示有几页,当前第几页。ScrollView是继承CCLayer,我们直接把指示器加到这里面试试。先加小圆点的图片进去。HelloWorld::init方法 this->addChild(_scrollView); CCSprite ... 阅读全文
摘要:
接上一篇,CCMenu当作ScrollView的Item可能满足不了我现在的需求。Item中先有个background框,分选中状态...还有个background,还有个CCArmature....自定义一个类StaticItem继承自CCSprite和CCTouchDelegateStaticI... 阅读全文
摘要:
直接上代码MyScrollView.h 1 // 2 // MyScrollView.h 3 // ScrollViewTest 4 // 5 // Created by HanHongmin on 14-1-1. 6 // 7 // 8 9 #ifndef __ScrollViewTest... 阅读全文