Read value of private properties
Opened this issue · 1 comments
ayman-melhem commented
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
MTJailed commented
You should try it with valueForUndefinedKey
which will be more straightforward.