summary refs log tree commit diff stats
path: root/Classes/CocosOverlayScrollView.h
diff options
context:
space:
mode:
authorStarla Insigna <starla4444@gmail.com>2011-08-23 09:24:14 -0400
committerStarla Insigna <starla4444@gmail.com>2011-08-23 09:24:14 -0400
commit02d9a87417837ffda602b2d06c2c6897d15a1202 (patch)
treef86db8e466f92df47c1f00c34e2cacfd01595d37 /Classes/CocosOverlayScrollView.h
parentc9337218ef1660360097928c753bde1c79775618 (diff)
downloadcartcollect-02d9a87417837ffda602b2d06c2c6897d15a1202.tar.gz
cartcollect-02d9a87417837ffda602b2d06c2c6897d15a1202.tar.bz2
cartcollect-02d9a87417837ffda602b2d06c2c6897d15a1202.zip
Added a UIPageControl to the level selection screen 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
Diffstat (limited to 'Classes/CocosOverlayScrollView.h')
-rwxr-xr-xClasses/CocosOverlayScrollView.h3
1 files changed, 2 insertions, 1 deletions
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 @@
12@interface CocosOverlayScrollView : UIScrollView <UIScrollViewDelegate> 12@interface CocosOverlayScrollView : UIScrollView <UIScrollViewDelegate>
13{ 13{
14 CCNode* targetLayer; 14 CCNode* targetLayer;
15 UIPageControl* pageControl;
15} 16}
16@property(nonatomic, retain) CCNode* targetLayer; 17@property(nonatomic, retain) CCNode* targetLayer;
17-(id) initWithFrame: (CGRect) frameRect numPages: (int) numPages width: (float) width layer: (CCNode*) layer; 18-(id) initWithFrame: (CGRect) frameRect numPages: (int) numPages width: (float) width layer: (CCNode*) layer pageControl:(UIPageControl*)pageControl;
18@end 19@end