Nitin Gaikwad
Wednesday, September 19, 2012
Add days to NSDate
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];
}
No comments:
Post a Comment
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment