in my app i have a LocalNotification. im getting the firing time from DatePicker and i want to LocalNotification to fire all the week at specific time (which i take from the UIPickerView) and in all weekday except Saturday.
EDIT
UIDatePicker *picker = [[UIDatePicker alloc]init];
[picker setTag:kDatePickerTag];
for (int i = 0; i < 7; i++) {
NSDate *today = [NSDate date];
NSCalendar *gregorianCalendar = [[NSCalendar alloc] initWithCalendarIdentifier:NSGregorianCalendar];
NSDate *scheduleDate = [**picker.date** dateByAddingTimeInterval:(i * 24.0f * 3600.0f)];
NSDateComponents *componentsForEachDay = [gregorianCalendar components:NSWeekdayCalendarUnit fromDate:scheduleDate];
if (componentsForEachDay.weekday != 7) { // To skip Saturday
UILocalNotification *localNotification = [[UILocalNotification alloc] init];
localNotification.repeatInterval = NSWeekCalendarUnit;
localNotification.fireDate = picker.date;
localNotification.timeZone = [NSTimeZone defaultTimeZone];
localNotification.alertBody = @"test message";
localNotification.soundName = UILocalNotificationDefaultSoundName;
localNotification.applicationIconBadgeNumber = 1;
[[UIApplication sharedApplication] scheduleLocalNotification:localNotification];
i have this code so far but now i have to set the firing time and i dont know how to merge between my picker.date which give me the TIME and weedDay which give me the DAY. i need then both is the same NSDate object. any ideas?