"Add days to NSDate"

Tue 10 April 2012

 

for (int i = 1; i < 30; i++) {

    NSDate *newDate = [startDay.date dateByAddingTimeInterval:60*60*24*i];

    MDay *day = [[MDay alloc] init];

    day.date = newDate;

    [list addObject:day];

}