How can I create an event with the iPhone’s calendar, getting the start and end dates from a UITextField?
How can I create an event with the iPhone’s calendar, getting the start and
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
To add an event programmatically, read Apple’s Event Kit Programming Guide. Maybe you want to make it easier on yourself by using an
EKEventViewController, but you can do everything in code as well.To transform an
NSStringfrom thetextproperty of your text field into anNSDateyou will have to use anNSDateFormatter. There are good examples in the class documentation.