Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/xtrinch/mrmultiplecontactpicker
Choose multiple contacts, ios 8.0+ compatible, swift 2.3
https://github.com/xtrinch/mrmultiplecontactpicker
contact-picker ios swift
Last synced: 12 days ago
JSON representation
Choose multiple contacts, ios 8.0+ compatible, swift 2.3
- Host: GitHub
- URL: https://github.com/xtrinch/mrmultiplecontactpicker
- Owner: xtrinch
- License: mit
- Created: 2016-08-02T08:40:01.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-08-04T14:26:54.000Z (over 8 years ago)
- Last Synced: 2024-11-27T20:37:07.829Z (about 1 month ago)
- Topics: contact-picker, ios, swift
- Language: Swift
- Homepage:
- Size: 95.7 KB
- Stars: 4
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# MRMultipleContactPicker
[![CI Status](http://img.shields.io/travis/xtrinch/MRMultipleContactPicker.svg?style=flat)](https://travis-ci.org/xtrinch/MRMultipleContactPicker)
[![Version](https://img.shields.io/cocoapods/v/MRMultipleContactPicker.svg?style=flat)](http://cocoapods.org/pods/MRMultipleContactPicker)
[![License](https://img.shields.io/cocoapods/l/MRMultipleContactPicker.svg?style=flat)](http://cocoapods.org/pods/MRMultipleContactPicker)
[![Platform](https://img.shields.io/cocoapods/p/MRMultipleContactPicker.svg?style=flat)](http://cocoapods.org/pods/MRMultipleContactPicker)Lets you choose multiple contacts from user's address book. Returns selected contacts on button press to the designated delegated. Does not have a search functionality and colors cannot be edited, but I will be very happy to accept pull requests.
## Example
To run the example project, clone the repo, and run `pod install` from the Example directory first.
## Usage
import MRMultipleContactPicker
import UIKit
class ViewController: UIViewController, MRMultipleContactPickerDelegate {
@IBAction func showContactsTapped(sender: AnyObject) {
displayContactPicker()
}
func displayContactPicker() {
let podBundle = NSBundle(forClass: MRMultipleContactPickerController.self)
let bundleURL = podBundle.URLForResource("MRMultipleContactPicker", withExtension: "bundle")
let bundle = NSBundle(URL: bundleURL!)!
let s = UIStoryboard (
name: "Main", bundle: bundle
)
let vc = s.instantiateInitialViewController()!
(vc as! MRMultipleContactPickerController).delegate = self
(vc as! MRMultipleContactPickerController).titleText = "Choose"
self.presentViewController(vc, animated: true, completion: nil)
}
// MARK: MRMultipleContactPickerDelegate methods
func contactsSelected(people:[Person]) {
print(people)
}
}## Requirements
## Installation
MRMultipleContactPicker is available through [CocoaPods](http://cocoapods.org). To install
it, simply add the following line to your Podfile:```ruby
pod "MRMultipleContactPicker"
```## Author
xTrinch, [email protected]
## License
MRMultipleContactPicker is available under the MIT license. See the LICENSE file for more info.