how to add alert to calendar event in objective C or Swift

I was going through EKEvent Class but i was not able to find the proper way to add alerts to events in calendar. Although i am able to do the same from my device. I wanted to do this programatically when i am creating a EKEvent and adding it to the calendar.





Thanks

Look at alarms property of EKCalendarItem class.

how to add alert to calendar event in objective C or Swift
 
 
Q