1
のインポート中に私のようなコードを持っている:iOSの10、calendar.title
で空のタイトル
let calendars = EKEventStore().calendars(for: entityType)
for calendar in calendars {
...
createListFrom(calendar: calendar, entityType: entityType)
}
...
newList.name = calendar.title
を本当の名前ですが、iOSの11でそれは常にnil
です。
iOS 11のバグですか、何か間違っていますか?
upd。 。
バリアント
せeventStore = EKEventStore()
カレンダーの=はeventStore.calendars(みましょう:
問題がカレンダー= EKEventStore()しましょう(entityType用)カレンダーを
であります.event)
作品
私は正確に同じコードを使用します。 –
あなたは許可を求めましたか? –
はい、コードはiOS 10で動作します –