diff options
author | Starla Insigna <starla4444@gmail.com> | 2011-08-23 13:21:56 -0400 |
---|---|---|
committer | Starla Insigna <starla4444@gmail.com> | 2011-08-23 13:21:56 -0400 |
commit | fd32f2af7f62f17d42292b6538903a37b0b5e563 (patch) | |
tree | 9373352af10a3f05ff6869fb5d337a4bb876ea25 /Classes/CocosOverlayScrollView.m | |
parent | b4c612674d28bf7b385bd9fe41b108df8d97b474 (diff) | |
download | cartcollect-e781c5f610c7583c32bc371add824b5ad47dc17c.tar.gz cartcollect-e781c5f610c7583c32bc371add824b5ad47dc17c.tar.bz2 cartcollect-e781c5f610c7583c32bc371add824b5ad47dc17c.zip |
Added game quitting safeguard to pause screen (version 0.3.1) v0.3.1
Also replaced instances of the term "Cart Collect" in Tutorial with "Cartographic". Also modified level selection screen to remember your position in the list rather than simply the last mode you'd played. Closes #211
Diffstat (limited to 'Classes/CocosOverlayScrollView.m')
-rwxr-xr-x | Classes/CocosOverlayScrollView.m | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Classes/CocosOverlayScrollView.m b/Classes/CocosOverlayScrollView.m index dee9dfe..9db0575 100755 --- a/Classes/CocosOverlayScrollView.m +++ b/Classes/CocosOverlayScrollView.m | |||
@@ -100,7 +100,11 @@ | |||
100 | 100 | ||
101 | - (void)scrollViewDidEndDecelerating:(UIScrollView *)scrollView | 101 | - (void)scrollViewDidEndDecelerating:(UIScrollView *)scrollView |
102 | { | 102 | { |
103 | [pageControl setCurrentPage:(NSUInteger)([scrollView contentOffset].x / [scrollView frame].size.width)]; | 103 | int currentPage = (NSUInteger)(scrollView.contentOffset.x / scrollView.frame.size.width); |
104 | NSUserDefaults* defaults = [NSUserDefaults standardUserDefaults]; | ||
105 | [defaults setInteger:currentPage forKey:@"lastSelectedMode"]; | ||
106 | |||
107 | [pageControl setCurrentPage:currentPage]; | ||
104 | } | 108 | } |
105 | 109 | ||
106 | @end \ No newline at end of file | 110 | @end \ No newline at end of file |