Giter VIP home page Giter VIP logo

wcscontactpicker's Introduction

WCSContactPicker

iOS 9 Contact picker — Apples replacement for the AddressBook framework.

enter image description here enter image description here enter image description here

Requirements

Requires iOS 9, the ContactsUI.framework and Contacts.framework.

Usage

  1. Include WCSContactPicker in your project and import the header file.
  2. Create an instance of WCSContactPicker and present a navigation controller.
  3. Receive delegate call back with a Contact object.
#import "WCSContactPicker.h"
@interface ViewController () <WCSContactPickerDelegate>
@end

WCSContactPicker * _picker = [[WCSContactPicker alloc] initWithDelegate:self];
UINavigationController * controller = [[UINavigationController alloc] initWithRootViewController:_picker];
[self presentViewController:controller animated:YES completion:NULL];

Delegate

Use the delegate callbacks for receive information about authorization, get a generic Contact object or be informed if the user simply cancels Contact selection.

- (void)picker:(WCSContactPicker*)picker didSelectContact:(Contact*)contact;
- (void)picker:(WCSContactPicker*)picker didFailToAccessContacts:(NSError*)error;
- (void)didCancelContactSelection;

Contact Object

This object contains simple to access basic Contact information from CNContact such as the First, Last, Nick, Phones, Email, Urls, etc.

@WrightsCS

Comments and feedback are welcome. Let me know if you contribute, find any bugs, have suggestions, etc. Twitter: @WrightsCS http://www.wrightscsapps.com

Apps using WCSContactPicker

If you are using this in your app, please let me know and I will add your app here!

wcscontactpicker's People

Contributors

wrightscs avatar

Stargazers

Richard avatar Robihamanto avatar  avatar Hussein Habibi Juybari avatar  avatar ADevTech avatar Viraj Patel avatar t3chnoBr4in avatar  avatar  avatar  avatar  avatar Will Jessop avatar Iván Cabezón Orjales avatar hasayakey avatar Mykola Blyk avatar Wayne S. avatar Bob Edmonston avatar Gabriel Ribeiro avatar Pierre Rougeot avatar Ernest Semerda avatar Lukas avatar Paul J avatar Anton Lookin avatar  avatar MohsinAli avatar David.Gao avatar  avatar  avatar Harimoto avatar Carabineiro avatar

Watchers

t3chnoBr4in avatar  avatar James Cloos avatar  avatar MohsinAli avatar Carabineiro avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.