nst/iOS-Runtime-Headers

Read value of private properties

Opened this issue · 1 comments

Hi -

I want to read the value of the private property of EKCalendar object, how can i do that ?

I tied the following but I didn't get the correct values:

EKCalendar * calendar = self.event.calendar;
BOOL value = [[calendar valueForKey:@"isMainCalendarForSource"] boolValue];

Please let me know how I can use these private properties in my code.

Regards

You should try it with valueForUndefinedKey

which will be more straightforward.