Ios7 获取标题、位置、时区、开始日期和结束日期值

Ios7 获取标题、位置、时区、开始日期和结束日期值,ios7,nsmutablearray,ekevent,ekeventstore,Ios7,Nsmutablearray,Ekevent,Ekeventstore,如何从NSMutableArray事件中访问位置值。当我尝试使用NSLog(@“事件标题:%@,[[events objectAtIndex:i]位置]);,编译器正在抛出多个名为“location”的方法,发现结果、参数类型或属性不匹配。如何从此事件中获取位置值 事件( “EKEvent\n{\n\t EKEvent\n{\t title=\t\tSdsdfsd;\n\tlocation=\t(null);\n\t calendar=\tEKCalendar{title=calendar;ty

如何从NSMutableArray事件中访问位置值。当我尝试使用NSLog(@“事件标题:%@,[[events objectAtIndex:i]位置]);,编译器正在抛出多个名为“location”的方法,发现结果、参数类型或属性不匹配。如何从此事件中获取位置值

事件( “EKEvent\n{\n\t EKEvent\n{\t title=\t\tSdsdfsd;\n\tlocation=\t(null);\n\t calendar=\tEKCalendar{title=calendar;type=Local;allowsdomify=YES;color=\t\t报警=\t\t(null);\n\t URL=\t\t\t\t\t\t\t\t\t\t(null);\n\t lastModified=2014-07-31 13:35:52+0000;n\t时区=\t格林威治标准时间(格林威治时间:5:30)偏移量19800\n};\n\t位置=\t(空值);\n\t起始日期=\t2014-08-01 13:30:00+0000;\n\t结束日期=\t\t2014-08-01 14:30:00+0000;\n\t全天=\t\t0;\n\t浮动=\t0;\n\t重复次数=\t(空值);\n\t与会者=\t(空值)\n\t
)

如果您有EKEvent对象的数组,那么您可以通过该数组循环以获得所需的数据,如下所示

for (int i = 0; i < events.count; i++)
{
   EKEvent *event = [events objectAtIndex:i];
   NSLog(@"Title: %@\n",event.title);
   NSLog(@"Location: %@\n",event.location);
   NSLog(@"TimeZone: %@\n",event.timeZone);
   NSLog(@"StartDate: %@\n",event.startDate);
   NSLog(@"EndDate: %@\n",event.endDate);
}
for(int i=0;i