Attach iCal File in MFMailComposerController?
问题 I want to add Event in my iPhone Calendar , i Successfully add the Event in my iPhone calendar. But, i want to get the all Current Month event and i want to attach that Event file (.ical) in my MFMailComposer . 回答1: Reading events is very simple. // Create the predicate from the event store's instance method NSPredicate *predicate = [store predicateForEventsWithStartDate:startOfTheMonth endDate:endOfTheMonth calendars:nil]; // Fetch all events that match the predicate NSArray *events = [store