Skip to content

Instantly share code, notes, and snippets.

@naan
Created March 2, 2011 19:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save naan/851597 to your computer and use it in GitHub Desktop.
Save naan/851597 to your computer and use it in GitHub Desktop.
if (autoRefreshTimer == nil && interval) {
NSTimeInterval diff = interval - [now timeIntervalSinceDate:lastRefreshDate];
if (diff <= 0) {
if (!IS_IPAD) {
[self forceRefresh];
}
}
else {
[self setNextTimer:diff];
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment