views:

29

answers:

1

Im trying to set the availability of an event i import into the iphone calendar with my app. Im using this code:

[event1 setAvailability:EKEventAvailabilityFree];

When i sync my iphone to my iCal i check the availability of the event, and it says "Busy". Xcode do ask for an integer, but there is none for the free option. I get no errors when i run this code, can someone please help figure out whats wrong.

A: 

Did you save the event back to the event store that contains it? See the saveEvent:span:error: message in the EKEventStore class reference.

GregInYEG
Yes I obviously do that when im able to sync my apps events from the Calendar.app into iCal. The problem is that it isnt free, its busy. Btw I use the defaultCalendarForNewEvents, is that the problem. If so, can someone show me how I can customize a custom calendar?
NorthCode