测试已测试 | ✓ |
语言语言 | SwiftSwift |
许可证 | MIT |
发布上一个发布 | 2017年4月 |
SwiftSwift 版本 | 3.0 |
SPM支持 SPM | ✓ |
由 Edward Valentini 维护。
Xcode 8.x / Swift 3.0
要运行示例项目,请克隆仓库,然后首先从 Example 目录中运行 pod install
import EVContactsPicker
EVContactsPicker 通过 CocoaPods 提供。要安装它,只需将以下行添加到您的 Podfile
pod "EVContactsPicker"
import UIKit
import EVContactsPicker
class DemoController: UIViewController, EVContactsPickerDelegate {
...
func showPicker() {
let contactPicker = EVContactsPickerViewController()
contactPicker.delegate = self
self.navigationController?.pushViewController(contactPicker, animated: true)
}
func didChooseContacts(contacts: [EVContactProtocol]?) {
if let cons = contacts {
for con in cons {
print("\(con.fullname())")
}
}
self.navigationController?.popViewControllerAnimated(true)
}
...
}
Edward Valentini, [email protected]
EVContactsPicker 在 MIT 许可证下可用。有关更多信息,请参阅 LICENSE 文件。