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.
相关问题
- CALayer - backgroundColor flipped?
- Core Data lightweight migration crashes after App
- How can I implement password recovery in an iPhone
- how do you prevent page scroll in textarea on mobi
- Custom UITableview cell accessibility not working
相关文章
- Could I create “Call” button in HTML 5 IPhone appl
- Unable to process app at this time due to a genera
- How do you detect key up / key down events from a
- “Storyboard.storyboard” could not be opened
- Open iOS 11 Files app via URL Scheme or some other
- Can keyboard of type UIKeyboardTypeNamePhonePad be
- Can not export audiofiles via “open in:” from Voic
- XCode 4.5 giving me “SenTestingKit/SenTestKit.h” f
Well I can offer you a workaround. If you get the .ical file , have access to it. You could convert it into a .zip file , please go through these links :-
How can I create a zip file by using Objective C?
How to zip folders in iPhone SDK?
Creating zip files in ObjectiveC for iPhone
And then attach it alongwith the email in the
MFMailComposer
using thisHope this helps.
Reading events is very simple.
More information in apple docs.
To get start and end of the month you can use example from this project: https://github.com/melsam/NSDateCategoryForReporting
And use this as an example how to export Events to .ical file https://github.com/mysterioustrousers/EKEventToiCal/blob/master/EKEventToiCal/
To send .ical file use the code from IronManGill answer but change mimeType to text/calendar