I’m trying to create a for loop with NSDates, so that the loop would increment by 1 day each cycle of the for loop…
NSDate *startDate = datePicker.date;
NSDate *endDate = datePicker2.date;
for (int i = startDate; i < endDate; i++)
{
}
The build fails because of me jamming a NSDate where the int is…
I also tried…
NSDate *startDate = datePicker.date;
NSDate *endDate = datePicker2.date;
for (NSDate *i = startDate; i < endDate; i++)
{
}
That did not build either. Any help would be greatly appreciated, thanks in advance.
Using NSDate in While loop