Null value returns from AddressBook framework in swift
问题 In my swift app, I am retrieving AddressBook contacts from AddressBook framework. Contacts are retrieved successfully except the following case. Case 1: If I save a contact number alone without contact name to AddressBook, contact is successfully added. But, If I try to retrieve that contact which does not having name, App crashes, saying that fatal error received. Coding: var contactName: String = ABRecordCopyCompositeName(addressBookRecord).takeRetainedValue() as NSString as String I don't