Created
November 3, 2010 14:42
-
-
Save stigi/661151 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/Classes/RootViewController.m b/Classes/RootViewController.m | |
index edef8fc..cbb2c54 100644 | |
--- a/Classes/RootViewController.m | |
+++ b/Classes/RootViewController.m | |
@@ -300,7 +300,9 @@ | |
return CGRectMake(PAGE_WIDTH * (page - 1), 0, PAGE_WIDTH, PAGE_HEIGHT); | |
} | |
- (void)spinnerForPage:(int)page isAnimating:(BOOL)isAnimating { | |
- UIActivityIndicatorView *spinner = [pageSpinners objectAtIndex:page - 1]; | |
+ UIActivityIndicatorView *spinner = nil; | |
+ if (page <= pageSpinners.count) | |
+ spinner = [pageSpinners objectAtIndex:page - 1]; | |
if (isAnimating) { | |
spinner.alpha = 0.0; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment