KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I'm attempting to determine which of an EKEvent's attendees ( EKPartipants ) is the current user. In iOS6, EKParticipant exposes a property called isCurrentUser http://developer.apple.com/library/ios/#documentation/EventKit/Reference/EKParticipantClassRef/Reference/Reference.html#//apple_ref/occ/cl/EKParticipant which is supposed to provide precisely this information. Unfortunately, each time I lookup an EKParticipant's isCurrentUser property, it returns NO, even when that's clearly not the case. Any help would be much appreciated! Updated findings: If you look up the event organizer, it correctly returns isCurrentUser == YES if you're the organizer. But, if you retrieve yourself from the set of attendees, it returns isCurrentUser == NO . Example console output with the two different EKParticipant objects referring to the same person with the same email address: (lldb) po [ekEvent.attendees objectAtIndex:3] $20 = 0x208c1220 EKAttendee <0x208c1220> {UUID = CCD17C5E-FCB5-4BC9-8D9E-7E957B20025D; name= ----- -----; email = --------wa@me.com; status = 2; role = 0; type = 1} (lldb) print [(EKParticipant *)[ekEvent.attendees objectAtIndex:3] isCurrentUser] (BOOL) $15 = NO (lldb) po ekEvent.organizer $19 = 0x20b720e0 EKOrganizer <0x20b720e0> {UUID = FD0E434D-2C9F-4A6E-98DC- 7FA6F27C3D1E; name = ----- -----; email = --------wa@me.com; isSelf = 1} (lldb) print ekEvent.organizer.isCurrentUser (BOOL) $16 = YES
Tags (comma-separated)
Save Edits
Cancel