我有一個iCal
文件與rRule
: rRule = "FREQ=WEEKLY;UNTIL=20140425T160000Z;INTERVAL=1;BYDAY=TU,TH";
iOS版 - 的iCal RRULE在EKEvent復發規則
我需要把這些信息在EKEvent
:
EKEvent *event;
event.recurrenceRules = ...
我分裂rRule
和保存它在NSArray
:
NSArray * rules = [evento.rRule componentsSeparatedByString:@";"];
event.recurrenceRules = rules;
但是錯誤ocurrs:
-[__NSCFString relationForKey:]: unrecognized selector sent to instance 0x21283350
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSCFString relationForKey:]: unrecognized selector sent to instance 0x21283350'
你能幫幫我嗎? 謝謝你的提前。