Ios 在tableView上显示数据:将联系人从选择器调用到tableView 29并计数
aa无论如何,我想问一下是否可以从我的联系人选择器填充一个表视图。我正在使用这个库: 这是我的提货员:Ios 在tableView上显示数据:将联系人从选择器调用到tableView 29并计数,ios,swift,uitableview,contact,picker,Ios,Swift,Uitableview,Contact,Picker,aa无论如何,我想问一下是否可以从我的联系人选择器填充一个表视图。我正在使用这个库: 这是我的提货员: ///CONTACTS PICKER\\\ @IBAction func onTouchShowMeContactsButton(sender: AnyObject) { let contactPickerScene = EPContactsPicker(delegate: self, multiSelection:true, subtitleCellType: SubtitleC
///CONTACTS PICKER\\\
@IBAction func onTouchShowMeContactsButton(sender: AnyObject) {
let contactPickerScene = EPContactsPicker(delegate: self, multiSelection:true, subtitleCellType: SubtitleCellValue.Email)
let navigationController = UINavigationController(rootViewController: contactPickerScene)
self.presentViewController(navigationController, animated: true, completion: nil)
}
//MARK: EPContactsPicker delegates
func epContactPicker(_: EPContactsPicker, didContactFetchFailed error : NSError)
{
print("Failed with error \(error.description)")
}
func epContactPicker(_: EPContactsPicker, didSelectContact contact : EPContact)
{
print("Contact \(contact.displayName()) has been selected")
}
func epContactPicker(_: EPContactsPicker, didCancel error : NSError)
{
print("User canceled the selection");
}
func epContactPicker(_: EPContactsPicker, didSelectMultipleContacts contacts: [EPContact]) {
print("The following contacts are selected")
for contact in contacts {
print("\(contact.displayName())")
}
选择联系人后,我希望能够在表视图中显示这些联系人,如下所示:
如果没有答案,或者你们认为我缺乏经验,不值得帮助,请通过某种教程或任何相关信息向我提供帮助。
谢谢你们的时间和努力 要从手机中获取联系人详细信息,您可以使用apple library,
ABAddressBookRef
我将退房并向本部门汇报,谢谢