How do I know if calendar sync is disabled in iCloud settings?
Is there any way to know that iPhone Settings
→ iCloud
→ Calendars
off / on? Because in both cases, the app gets iCloud in the object EKSource
.
// Get the calendar source
EKSource* currentSource;
for (EKSource *source in eventStore.sources)
{
if (source.sourceType == EKSourceTypeCalDAV &&
[source.title isEqualToString:@"iCloud"])
{/*True in two cases
1. if iCloud Signed In and Calendars switch is On
2. if iCloud Signed In but Calendars switch is Off*/
currentSource = source;
break;
}
}
+3
source to share
No one has answered this question yet
See similar questions:
or similar: