Documentation Archive Developer
Search

EventKit Changes for Objective-C

EventKit

EKCalendar.h

Declaration
From
@property(nonatomic, retain) EKSource *source
To
@property(nonatomic, strong, nonnull) EKSource *source

EKCalendarItem.h

Declaration
From
@property(nonatomic, copy) NSArray *alarms
To
@property(nonatomic, copy, nullable) NSArray<EKAlarm *> *alarms

Declaration
From
@property(nonatomic, readonly) NSArray *attendees
To
@property(nonatomic, readonly, nullable) NSArray<__kindof EKParticipant *> *attendees

Declaration
From
@property(nonatomic, retain) EKCalendar *calendar
To
@property(nonatomic, strong, nonnull) EKCalendar *calendar

Declaration
From
@property(nonatomic, copy) NSArray *recurrenceRules
To
@property(nonatomic, copy, nullable) NSArray<EKRecurrenceRule *> *recurrenceRules

EKError.h

EKEvent.h

EKEventStore.h

Declaration
From
- (NSArray *)calendarItemsWithExternalIdentifier:(NSString *)externalIdentifier
To
- (NSArray<EKCalendarItem *> * _Nonnull)calendarItemsWithExternalIdentifier:(NSString * _Nonnull)externalIdentifier

Declaration
From
@property(nonatomic, readonly) NSArray *calendars
To
@property(nonatomic, readonly, nonnull) NSArray<EKCalendar *> *calendars

Declaration
From
- (NSArray *)calendarsForEntityType:(EKEntityType)entityType
To
- (NSArray<EKCalendar *> * _Nonnull)calendarsForEntityType:(EKEntityType)entityType

Declaration
From
- (NSArray *)eventsMatchingPredicate:(NSPredicate *)predicate
To
- (NSArray<EKEvent *> * _Nonnull)eventsMatchingPredicate:(NSPredicate * _Nonnull)predicate

Declaration
From
- (id)fetchRemindersMatchingPredicate:(NSPredicate *)predicate completion:(void (^)(NSArray *reminders))completion
To
- (id _Nonnull)fetchRemindersMatchingPredicate:(NSPredicate * _Nonnull)predicate completion:(void (^ _Nonnull)(NSArray<EKReminder *> * _Nullable reminders))completion

Declaration
From
- (NSPredicate *)predicateForCompletedRemindersWithCompletionDateStarting:(NSDate *)startDate ending:(NSDate *)endDate calendars:(NSArray *)calendars
To
- (NSPredicate * _Nonnull)predicateForCompletedRemindersWithCompletionDateStarting:(NSDate * _Nullable)startDate ending:(NSDate * _Nullable)endDate calendars:(NSArray<EKCalendar *> * _Nullable)calendars

Declaration
From
- (NSPredicate *)predicateForEventsWithStartDate:(NSDate *)startDate endDate:(NSDate *)endDate calendars:(NSArray *)calendars
To
- (NSPredicate * _Nonnull)predicateForEventsWithStartDate:(NSDate * _Nonnull)startDate endDate:(NSDate * _Nonnull)endDate calendars:(NSArray<EKCalendar *> * _Nullable)calendars

Declaration
From
- (NSPredicate *)predicateForIncompleteRemindersWithDueDateStarting:(NSDate *)startDate ending:(NSDate *)endDate calendars:(NSArray *)calendars
To
- (NSPredicate * _Nonnull)predicateForIncompleteRemindersWithDueDateStarting:(NSDate * _Nullable)startDate ending:(NSDate * _Nullable)endDate calendars:(NSArray<EKCalendar *> * _Nullable)calendars

Declaration
From
- (NSPredicate *)predicateForRemindersInCalendars:(NSArray *)calendars
To
- (NSPredicate * _Nonnull)predicateForRemindersInCalendars:(NSArray<EKCalendar *> * _Nullable)calendars

Declaration
From
- (NSArray *)sources
To
@property(nonatomic, readonly, nonnull) NSArray<EKSource *> *sources

EKObject.h

Declaration
From
- (BOOL)hasChanges
To
@property(nonatomic, readonly) BOOL hasChanges

EKParticipant.h

Removed EKParticipant.isCurrentUser
Deprecation
From--
ToiOS 9.0

EKRecurrenceDayOfWeek.h

Declaration
From
@property(nonatomic, readonly) NSInteger dayOfTheWeek
To
@property(nonatomic, readonly) EKWeekday dayOfTheWeek

Declaration
From
+ (EKRecurrenceDayOfWeek *)dayOfWeek:(NSInteger)dayOfTheWeek
To
+ (instancetype _Nonnull)dayOfWeek:(EKWeekday)dayOfTheWeek

Declaration
From
+ (EKRecurrenceDayOfWeek *)dayOfWeek:(NSInteger)dayOfTheWeek weekNumber:(NSInteger)weekNumber
To
+ (instancetype _Nonnull)dayOfWeek:(EKWeekday)dayOfTheWeek weekNumber:(NSInteger)weekNumber

Declaration
From
- (id)initWithDayOfTheWeek:(NSInteger)dayOfTheWeek weekNumber:(NSInteger)weekNumber
To
- (id _Nonnull)initWithDayOfTheWeek:(EKWeekday)dayOfTheWeek weekNumber:(NSInteger)weekNumber

EKRecurrenceEnd.h

Declaration
From
+ (id)recurrenceEndWithEndDate:(NSDate *)endDate
To
+ (instancetype _Nonnull)recurrenceEndWithEndDate:(NSDate * _Nonnull)endDate

Declaration
From
+ (id)recurrenceEndWithOccurrenceCount:(NSUInteger)occurrenceCount
To
+ (instancetype _Nonnull)recurrenceEndWithOccurrenceCount:(NSUInteger)occurrenceCount

EKRecurrenceRule.h

Declaration
From
@property(nonatomic, readonly) NSArray *daysOfTheMonth
To
@property(nonatomic, readonly, nullable) NSArray<NSNumber *> *daysOfTheMonth

Declaration
From
@property(nonatomic, readonly) NSArray *daysOfTheWeek
To
@property(nonatomic, readonly, nullable) NSArray<EKRecurrenceDayOfWeek *> *daysOfTheWeek

Declaration
From
@property(nonatomic, readonly) NSArray *daysOfTheYear
To
@property(nonatomic, readonly, nullable) NSArray<NSNumber *> *daysOfTheYear

Declaration
From
- (id)initRecurrenceWithFrequency:(EKRecurrenceFrequency)type interval:(NSInteger)interval daysOfTheWeek:(NSArray *)days daysOfTheMonth:(NSArray *)monthDays monthsOfTheYear:(NSArray *)months weeksOfTheYear:(NSArray *)weeksOfTheYear daysOfTheYear:(NSArray *)daysOfTheYear setPositions:(NSArray *)setPositions end:(EKRecurrenceEnd *)end
To
- (instancetype _Nonnull)initRecurrenceWithFrequency:(EKRecurrenceFrequency)type interval:(NSInteger)interval daysOfTheWeek:(NSArray<EKRecurrenceDayOfWeek *> * _Nullable)days daysOfTheMonth:(NSArray<NSNumber *> * _Nullable)monthDays monthsOfTheYear:(NSArray<NSNumber *> * _Nullable)months weeksOfTheYear:(NSArray<NSNumber *> * _Nullable)weeksOfTheYear daysOfTheYear:(NSArray<NSNumber *> * _Nullable)daysOfTheYear setPositions:(NSArray<NSNumber *> * _Nullable)setPositions end:(EKRecurrenceEnd * _Nullable)end

Declaration
From
- (id)initRecurrenceWithFrequency:(EKRecurrenceFrequency)type interval:(NSInteger)interval end:(EKRecurrenceEnd *)end
To
- (instancetype _Nonnull)initRecurrenceWithFrequency:(EKRecurrenceFrequency)type interval:(NSInteger)interval end:(EKRecurrenceEnd * _Nullable)end

Declaration
From
@property(nonatomic, readonly) NSArray *monthsOfTheYear
To
@property(nonatomic, readonly, nullable) NSArray<NSNumber *> *monthsOfTheYear

Declaration
From
@property(nonatomic, readonly) NSArray *setPositions
To
@property(nonatomic, readonly, nullable) NSArray<NSNumber *> *setPositions

Declaration
From
@property(nonatomic, readonly) NSArray *weeksOfTheYear
To
@property(nonatomic, readonly, nullable) NSArray<NSNumber *> *weeksOfTheYear

EKReminder.h

Declaration
From
@property(nonatomic) NSInteger priority
To
@property(nonatomic) NSUInteger priority

EKSource.h

Declaration
From
@property(nonatomic, readonly) NSSet *calendars
To
@property(nonatomic, readonly, nonnull) NSSet<EKCalendar *> *calendars

Declaration
From
- (NSSet *)calendarsForEntityType:(EKEntityType)entityType
To
- (NSSet<EKCalendar *> * _Nonnull)calendarsForEntityType:(EKEntityType)entityType

EKStructuredLocation.h

Declaration
From
@property(nonatomic, retain) CLLocation *geoLocation
To
@property(nonatomic, strong, nullable) CLLocation *geoLocation

Declaration
From
+ (EKStructuredLocation *)locationWithTitle:(NSString *)title
To
+ (instancetype _Nonnull)locationWithTitle:(NSString * _Nonnull)title

Declaration
From
@property(nonatomic, retain) NSString *title
To
@property(nonatomic, strong, nonnull) NSString *title

EKTypes.h