目标C:需要解析一个对象

里克

我有一个日历对象返回为

1:58:26 EAS-iPhone-5c InstaFeed[346] <Warning>: (
    "EKEvent <0x1658d5b0>\n{\n\t EKEvent <0x1658d5b0>\n{\t title = \t\tMeetings for surveyApp; \n\t location = \tany loacation; \n\t calendar = \tEKCalendar <0x1668d4e0> {title = Calendar; type = Exchange; allowsModify = YES; color = #A2845E;}; \n\t alarms = \t\t(\n    \"EKAlarm <0x16692740> {triggerInterval = -900.000000}\"\n); \n\t URL = \t\t\t(null); \n\t lastModified = 2014-04-28 09:43:17 +0000; \n\t timeZone = \tGMT+0530 (GMT+5:30) offset 19800 \n}; \n\t location = \tany loacation; \n\t startDate = \t2014-07-24 10:00:00 +0000; \n\t endDate = \t\t2014-07-24 10:30:00 +0000; \n\t allDay = \t\t0; \n\t floating = \t0; \n\t recurrence = \tEKRecurrenceRule <0x16694c60> RRULE FREQ=DAILY;INTERVAL=1; \n\t attendees = \t(\n    \"EKAttendee <0x1668f2d0> {UUID = AB8950BF-702B-4E0C-9A6D-5CD1F61AA05A; name = Karthik Srinivasulu; email = [email protected]; status = 2; role = 1; type = 1}\",\n    \"EKAttendee <0x16695e00> {UUID = A553802F-0083-497E-8D68-911864C28A03; name = Sushil Thanvi; email = [email protected]; status = 0; role = 1; type = 1}\",\n    \"EKAttendee <0x16695fa0> {UUID = 30E2351E-F501-42DD-B282-82D7350DC7FE; name = Sonam Chadha (X) Exit (5/6/2014); email = [email protected]; status = 0; role = 1; type = 1}\"\n) \n};"

我可以通过以下方式获取标题,位置,注释日期

 for (EKEvent * event in matchingEvents) {
        NSMutableDictionary *entry = [[NSMutableDictionary alloc]      initWithObjectsAndKeys:
                                      event.title, @"title",
                                      event.location, @"location",
                                      event.notes, @"message",
                                      [df stringFromDate:event.startDate], @"startDate",
                                      [df stringFromDate:event.endDate], @"endDate",
                                       nil];
        [finalResults addObject:entry];
    }

我需要获取与会者列表和会议的组织者。提前致谢!

暗尘

只需使用与会者组织者属性。

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章