- 1
- 2
- 3
- 4
- 5
// Get current challenge day by calculating the difference between now and challenge start date
double currentChallengeDay = 0;
NSTimeInterval challengeStartDateDifference = [[user currentMiniGame].startDate timeIntervalSinceNow];
NSTimeInterval hourDifference = challengeStartDateDifference / 3600;
modf(fabs(hourDifference / 24), ¤tChallengeDay);
Follow us!