0

I am using default calendar in iOS5. I have to display most recent three completed activities, most recent three todo events.Those events can be any thing,means it can be any day.

Can any one help me how retrieve those events using ekevnt store.

CKT
  • 1,223
  • 4
  • 21
  • 39

1 Answers1

0

See if you can make use of this enumerateEventsMatchingPredicate:usingBlock: Write predicate to get all the events, then in block callback process for 3 events and then stop.

Sagrian
  • 1,048
  • 2
  • 11
  • 29
  • I accept with this.But how do i know start, end dates of events occurred.do i need to keep previous six months, next six months> – CKT Feb 27 '13 at 07:33