Objective-C/iOS: Get date for specific day in week (sunday)
问题 I need to get the date of a specific day (Sunday) in the current week. I use this date to determine if some weekly resetting should occur, and I do some calculations on last reset date is before sundays date etc. This has in principal been ask and answered many times, and my solution has worked for the past 6 months. But today, the 29th of December 2013, it stopped working. The function used at present time: + (NSDate *) getSundaysDate{ NSDate *currentDate = [NSDate date]; NSCalendar