Latest 0.0.3
Homepage https://github.com/xTrinch/MRMultipleContactPicker
License MIT
Platforms ios 8.0
Authors

CI Status
Version
License
Platform

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.

MRMultipleContactPicker screenshot

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. To install
it, simply add the following line to your Podfile:

pod "MRMultipleContactPicker"

Author

xTrinch, [email protected]

License

MRMultipleContactPicker is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "MRMultipleContactPicker",
    "version": "0.0.3",
    "summary": "Multiple contact picker for ios 8.0+ in swift",
    "description": "Multiple contact picker for ios 8.0+ in swift 2.2",
    "homepage": "https://github.com/xTrinch/MRMultipleContactPicker",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Mojca Rojko": "[email protected]"
    },
    "source": {
        "git": "https://github.com/xtrinch/MRMultipleContactPicker.git",
        "tag": "0.0.3"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "MRMultipleContactPicker/Classes/**/*",
    "resource_bundles": {
        "MRMultipleContactPicker": [
            "MRMultipleContactPicker/Assets/**/*.{png,jpeg,jpg,storyboard,xib,xcassets,lproj}"
        ]
    }
}

Pin It on Pinterest

Share This