iOS17以前 日歷訪問(wèn)權(quán)限默認(rèn)是全部權(quán)限 iOS17 后分為 可讀可寫權(quán)限和只可寫權(quán)限闯割;
1.項(xiàng)目的 info.Plist?隱私字段添加
NSCalendarsFullAccessUsageDescription? ?App 可讀可寫事件到日歷
NSCalendarsWriteOnlyAccessUsageDescription?App 只可寫事件到日歷
NSRemindersFullAccessUsageDescription?App請(qǐng)求訪問(wèn)讀取和寫入其提醒數(shù)據(jù)的消息