Latest 0.0.3
Homepage https://github.com/KayCm/ContactGetter
License MIT
Platforms ios 8.1
Authors

IOS8/9 Contact

How To Use

Step.1

#import "ContactGetter.h"

Step.2

    ContactGetter *get = [[ContactGetter alloc]init];

    //cause the Permission alert will Blocking main thread,so delayed the function.
    dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(3 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{

        [get GET:^(NSDictionary *Result) {

            NSLog(@"%@",Result);

        } failure:^(BOOL Result) { // The bool value named result,that means No contacts data or has no permission

            if (Result) {
                NSLog(@"No Data");
            }else{
                NSLog(@"No Permission");
                //jump to setting
            }

        }];

    });

Latest podspec

{
    "name": "ContactGetter",
    "version": "0.0.3",
    "summary": "A Contact Getter.",
    "description": "A Contact Getter. It`s output the all contacts.",
    "homepage": "https://github.com/KayCm/ContactGetter",
    "license": "MIT",
    "authors": {
        "KayCM": "[email protected]"
    },
    "platforms": {
        "ios": "8.1"
    },
    "source": {
        "git": "https://github.com/KayCm/ContactGetter.git",
        "tag": "0.0.3"
    },
    "source_files": "ContactGetter/*"
}

Pin It on Pinterest

Share This