我正在尝试在应用程序中保存事件的RecurrenceRule。我无法构造表的架构。请建议可以是表的结构。

谢谢

最佳答案

  calendarIdentifier  String
  daysOfTheMonth  relationship
  daysOfTheWeek  relationship
  daysOfTheYear  relationship
  firstDayOfTheWeek  Integer16
  frequency  Integer16
  interval  Integer16
  monthsOfTheYear  relationship
  recurrenceEnd  Date
  setPositions  relationship
  weeksOfTheYear  relationship

您应该为EKRecurrenceRule类参考创建一个结构。
数组将是与相应实体的关系。
例如:daysOfTheWeek将与实体WeekDays关联,您将在属性日中将天存储为Integer16。

10-08 06:09