Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
从 iOS 9 开始,不推荐使用 EKEvent 属性birthdayPersonID。
如何获取与生日活动关联的 CNContact?
如果您尝试使用birthdayPersonID,它会产生一个警告,上面写着:
birthdayPersonID
警告:'birthdayPersonID' 已被弃用:在 iOS 9.0 中首次弃用 - 改用birthdayContactIdentifier
所以,使用birthdayContactIdentifier.
birthdayContactIdentifier