我正在使用 IOS 日历,我想知道如何检测日历的来源。我的意思是检测日历来自 Facebook、谷歌等。
我使用的是日历类型,但是不够详细
if (type == EKCalendarTypeLocal) {
typeString = @"local";
} else if (type == EKCalendarTypeCalDAV) {
typeString = @"calDAV";
} else if (type == EKCalendarTypeExchange) {
typeString = @"exchange";
} else if (type == EKSourceTypeMobileMe) {
typeString = @"MobileMe";
} else if (type == EKCalendarTypeSubscription) {
typeString = @"subscription";
} else if (type == EKCalendarTypeBirthday) {
typeString = @"birthday";
只是为了添加更多日期,我正在使用
for (EKCalendar *thisCalendar in calendars) {
EKCalendarType type = thisCalendar.type;
EKSource* source = thisCalendar.source;
DLog(@"title %@", source.title);
DLog(@"Src Id %@ and title %@", source.sourceIdentifier, thisCalendar.title);
DLog(@"Id %@", thisCalendar.calendarIdentifier);
但这并不是真正的描述性,因为日历 iOS 内置应用程序有什么想法?