在tableView上显示数据:从一个select器调用联系人到tableView 29并计数

Aaanyway,我想问是否可以从我的联系人select器填充表视图。 我正在使用这个库: https : //github.com/ipraba/EPContactsPicker

这是我的select器:

///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())") } 

在我select联系人之后,我希望能够像这样在表格视图中显示它们: TableView

如果没有答案,或者如果你们认为由于我缺乏经验而不配得到帮助,请通过某种辅导或者某种可靠的信息来给我提供帮助。 感谢您的时间和精力。 <3

要从手机获取联系方式,您可以使用苹果库ABAddressBookRef

请检查苹果文档