Question

I want to add reminder functionality in my iphone app, I came to know that I need to use local notification but I don't want to use it.

So is there any way to fulfill my need ??

Était-ce utile?

La solution 3

If you don't want to use UILocal notification use EKEventStore for adding reminders in iPhone Calendar. You can add your alarm, events etc in iPhone Calendar. But remember it supports only iOS 6.0 or later. you cannot change in iPhone calendar in lower iOS6.0 version

Follow these links:

Link-1 Link-2

Autres conseils

UILocalNotification is a nice thing but if you don't want to use it you can make use of EventKit that gives you access to device's reminders.

Create EventStore object with reminder type.

EKEventStore *store = [[EKEventStore alloc] initWithAccessToEntityTypes:EKEntityMaskReminder];

Get access from user.

[store requestAccessToEntityType:EKEntityTypeReminder completion:^(BOOL granted, NSError *error) {
    // handle access here }];

use this function to create reminders

+ (EKReminder *)reminderWithEventStore:(EKEventStore *)eventStore

Refer documentation for more details .

There is an another way, other than using the local notification, see my answer posted hear in this u set an event in the calendar and set the repeat settings by setting alarm.

Hope this helps you.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top