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
ios objective-c icloud eventkit


source to share


No one has answered this question yet

See similar questions:

2
Is it possible to intercept iCloud on / off in settings & # 8594; iCloud & # 8594; Document and data?

or similar:

352
How to determine the current iPhone / device model?
96
Using Core Data, iCloud and CloudKit for Synchronization & Backup & Collaboration
31
How to use iCloud to store and sync app files
8
Create a calendar, no local source even with iCloud turned off
five
iCloud: how to manage iCloud shutdown?
3
ICloud calendar sync issue when creating calendar from app
2
Is it possible to intercept iCloud on / off in settings & # 8594; iCloud & # 8594; Document and data?
0
IOS app disables iCloud drive (off) on device settings page and gets iCloud persistentStore
0
Calendar syncing with iCloud causes duplicate events
0
ios icloud on / off programmatically in the device



All Articles
Loading...
X
Show
Funny
Dev
Pics