0
私は自分のプロジェクトでカレンダービューを使用しています。私はMBCalendarKitを使用しています。その時、シングルイベントのシングルデートが表示されます。しかし、私は複数のイベントで単一の日付を表示したい。しかし、どうすれば助けてください。表示方法複数のイベントで1つの日付をMBCalendarKitに再ロード
- (void) viewWillAppear: (BOOL)animated{
NSArray *title = [_caldevice valueForKey:@"pill"];
// NSLog(@"event name fetch %@",title);
NSArray *date =[_caldevice valueForKey:@"datetaken"];
// NSLog(@"event fetch %@",date);
NSArray*dose= [_caldevice valueForKey:@"dose"];
NSString *title1;
NSString*title2;
NSDate *date1;
NSData *imgdata;
CKCalendarEvent *releaseUpdatedCalendarKit;
NSDateFormatter* dateFormatter = [[NSDateFormatter alloc] init];
dateFormatter.dateFormat = @"dd-MM-yyyy";
for (int i = 0; i < [date count]; i++){
title1 = NSLocalizedString(title[i], @"");
title2 = NSLocalizedString(dose[i], @"");
NSString *combined = [NSString stringWithFormat:@"%@ - %@", title1, title2];
date1 = [dateFormatter dateFromString:date[i]];
releaseUpdatedCalendarKit = [CKCalendarEvent eventWithTitle:combined andDate:date1 andInfo:Nil];
// NSLog(@"Event: %@ , %@",combined,date1);
// releaseUpdatedCalendarKit = [CKCalendarEvent eventWithTitle:combined andDate:date1 andInfo:Nil andColor:[UIColor blueColor]];
self.data[date1] = @[releaseUpdatedCalendarKit];
}
}
問題を作成し、LIBのgithubのに尋ねる、作成者は@ankurkumawatねえ、私はMBCalendarKitの開発者ですuの私が尋ねるTj3n @ – Tj3n
が、クリエーター –
からノー再生に役立つかもしれません。あなたはここで問題を結びつけてもらえますか?私が助けることができるかどうか分かりますか? – Moshe