From 02d9a87417837ffda602b2d06c2c6897d15a1202 Mon Sep 17 00:00:00 2001 From: Starla Insigna Date: Tue, 23 Aug 2011 09:24:14 -0400 Subject: Added a UIPageControl to the level selection screen The page control updates when you swipe through the levels, but tapping it does nothing. I initially attempted to implement scrolling by tapping on the page control, but for some reason, it worked perfectly in the simulator and only randomly on the iPhone. Very weird. Refs #207 --- Classes/CocosOverlayScrollView.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Classes/CocosOverlayScrollView.h') diff --git a/Classes/CocosOverlayScrollView.h b/Classes/CocosOverlayScrollView.h index 29de1c7..ad8e83f 100755 --- a/Classes/CocosOverlayScrollView.h +++ b/Classes/CocosOverlayScrollView.h @@ -12,7 +12,8 @@ @interface CocosOverlayScrollView : UIScrollView { CCNode* targetLayer; + UIPageControl* pageControl; } @property(nonatomic, retain) CCNode* targetLayer; --(id) initWithFrame: (CGRect) frameRect numPages: (int) numPages width: (float) width layer: (CCNode*) layer; +-(id) initWithFrame: (CGRect) frameRect numPages: (int) numPages width: (float) width layer: (CCNode*) layer pageControl:(UIPageControl*)pageControl; @end -- cgit 1.4.1