diff options
author | Starla Insigna <starla4444@gmail.com> | 2011-08-23 09:24:14 -0400 |
---|---|---|
committer | Starla Insigna <starla4444@gmail.com> | 2011-08-23 09:24:14 -0400 |
commit | 02d9a87417837ffda602b2d06c2c6897d15a1202 (patch) | |
tree | f86db8e466f92df47c1f00c34e2cacfd01595d37 /Classes/CocosOverlayScrollView.h | |
parent | c9337218ef1660360097928c753bde1c79775618 (diff) | |
download | cartcollect-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-x | Classes/CocosOverlayScrollView.h | 3 |
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 |