EVContactsPicker 0.5.12

EVContactsPicker 0.5.12

测试已测试
语言语言 SwiftSwift
许可证 MIT
发布上一个发布2017年4月
SwiftSwift 版本3.0
SPM支持 SPM

Edward Valentini 维护。




EVContactsPicker

Code Climate

EVContactsPickerMasthead

Swift 版本

Xcode 8.x / Swift 3.0

屏幕截图

Screenshot0    Screenshot1

使用方法

要运行示例项目,请克隆仓库,然后首先从 Example 目录中运行 pod install

import EVContactsPicker

要求

  • iOS 9.0+
  • ARC
  • Swift 3.0

安装

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 文件。