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.
Swift 2では、この下の行が機能します
var contacts = [CNContact]()
しかし、Swift 3 では、「未解決の識別子 CNContact の使用」というエラー メッセージが表示されます。import Contactsビューコントローラーはすでにモジュール「連絡先」の一部であるため、インポートを無視するxcode 8以降、挿入と削除の両方を試みました。それを解決する方法は?
import Contacts
で完全に機能していSwift 3.0ます。新しいプロジェクトを作成したばかりで、自由に使用できますCNContact。
Swift 3.0
CNContact
考えられる回避策:
ここで、プロジェクトをビルドしてみます。