'kABPersonAddressStreetKey' was deprecated in iOS 9.0: use CNPostalAddress.street

后端 未结 4 1573
悲哀的现实
悲哀的现实 2021-02-19 06:43

I have the following class written in an earlier version of Swift. The Swift 2 Compiler warns that

\'kABPersonAddressStreetKey\' was d

4条回答
  •  野性不改
    2021-02-19 07:26

    You should use:

    1. import Contacts instead import AddressBook.
    2. CNPostalAddressStreetKey instead kABPersonAddressStreetKey.

提交回复
热议问题