4

does iPhone simulator calendar store "availability" correctly for an event?

I've got a test app that populates the iPhone simulator calendar with events, but I'm noting that the availability property seems to be always FREE when reading it back using EKEventKit.

Anyone know if there a known problem here?

Also I note when running the SimpleEKDemo apple sample application, that when it brings up the EKEventKitUI screen to view/edit an event, that I don't see the "availability" field. Not sure why. On the actual physical iPhone it appears fine.

Greg
  • 34,042
  • 79
  • 253
  • 454

3 Answers3

1

Have a look at my answer here. All simulator calendar information is stored in an sqlite database within the simulator's files.

EDIT: I took a look at the structure of the database, and found a value for availability: SQLite database screenshot.

It looks like the simulator saves this information. Try adding an event in your application and explore the database to see if the availability value is set. Failing that, your best option is to try a real device.

Community
  • 1
  • 1
mopsled
  • 8,445
  • 1
  • 38
  • 40
  • thanks, but I already know how to successfully integrate with the calendar data using EKEventKit - my problem is just that whilst most fields work (title, location, from date, to date etc) that the availability field doesn't seem to work...I can't see anything about the availability field in your like or how to get it working...any advice? – Greg Oct 11 '11 at 05:48
  • Wow - see what u mean - almost like the simulator has a bug around it's ekeventkit implementation of the API. – Greg Oct 11 '11 at 11:24
0

The iPhone simulator does not include a calendar, which might explain why it is not storing any data relating to it.

If you read this post, you will see that the only way to test an app such as yours is on an actual iPhone device.

  • The simulator basically just got safari and photos – Faser Oct 10 '11 at 14:55
  • it actually does have calendar server side - I've got apps which interact with it & there is an Apple sample code project which uses it - it just doesn't have a deployed Calendar app/UI. The issue is whilst these apps work fine, the the availability property does NOT seem to work... – Greg Oct 10 '11 at 20:41
  • Actually nowadays simulator supports calendar beautifully. It has both "Calendar" and "Reminders" apps preinstalled, and you have at least 4 calendars there - the default "Calendar", Birthdays, U.S. Holidays, and "Siri found in apps" calendar. – Motti Shneor Feb 17 '19 at 12:22
0

There doesn't seem to be any way to access the calendar from the simulator, unfortunately.

Tariq
  • 9,861
  • 12
  • 62
  • 103