[
  {
    "path": ".gitignore",
    "content": "# Xcode\n#\nbuild/\n*.pbxuser\n!default.pbxuser\n*.mode1v3\n!default.mode1v3\n*.mode2v3\n!default.mode2v3\n*.perspectivev3\n!default.perspectivev3\nxcuserdata\n*.xccheckout\n*.moved-aside\nDerivedData\n*.hmap\n*.ipa\n*.xcuserstate\n\n# CocoaPods\n#\n# We recommend against adding the Pods directory to your .gitignore. However\n# you should judge for yourself, the pros and cons are mentioned at:\n# http://guides.cocoapods.org/using/using-cocoapods.html#should-i-ignore-the-pods-directory-in-source-control\n#\n#\nPods/\n"
  },
  {
    "path": "LICENSE",
    "content": "The MIT License (MIT)\n\nCopyright (c) 2014 Zhixuan Lai\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n\n"
  },
  {
    "path": "README.md",
    "content": "ZLPeoplePickerViewController\n============================\nA replacement for ABPeoplePickerNavigationController that supports UILocalized​Indexed​Collation. ZLPeoplePickerViewController was originally created for [Talkly](http://zhxnlai.github.io/#/talkly).\n\nWhy?\n---\nABPeoplePickerNavigationController does not work well with contact names of multiple languages, neither does some address book based app that worths $16 billion. Here are some examples:\n\n<img width=\"320 px\" src=\"Previews/phoneapp.png\"/>\n<img width=\"320 px\" src=\"Previews/whatsapp.png\"></img>\n\nAnd this is how it should have been:\n\n<img width=\"320 px\" src=\"Previews/ourapp.png\"></img>\n\nPreview\n---\n###Present ABPersonViewController on select\n![ABPersonViewController](Previews/personVCPreview.gif)\n###Send group emails on return\n![Group Emails](Previews/emailsPreview.gif)\n###Custom Multiple Select\n![Custom Multiple Select](Previews/mulSelectPreview.gif)\n\nFeatures\n---\n- [x] Supports multilingual indexing and sorting by implementing UILocalized​Indexed​Collation using [LRIndexedCollationWithSearch](https://gist.github.com/305676/c128784d22fcf572d3beded690ce84f85449d7c7).\n- [x] Supports searching by name, emails and addresses. The results are displayed using UISearchController in iOS 8.\n- [x] Supports multiple selection.\n- [x] Supports field mask for filtering contacts.\n- [ ] Support searching by phone number\n\nCocoaPods\n---\nYou can install `ZLPeoplePickerViewController` through CocoaPods adding the following to your Podfile:\n\npod 'ZLPeoplePickerViewController'\n\nUsage\n---\nCheck out the [demo app](https://github.com/zhxnlai/ZLPeoplePickerViewController/tree/master/ZLPeoplePickerViewControllerDemo) for an example.\n\nZLPeoplePickerViewController can be initialized and pushed to navigation controller in a way similar to ABPeoplePickerNavigationController:\n~~~objective-c\nself.peoplePicker = [[ZLPeoplePickerViewController alloc] init];\nself.peoplePicker.delegate = self;\n[self.navigationController pushViewController:self.peoplePicker animated:YES];\n~~~\n\nThere is also a convenience method for presenting the people picker modally.\n~~~objective-c\nself.peoplePicker = [ZLPeoplePickerViewController presentPeoplePickerViewControllerForParentViewController:self];\n~~~\n\nLoading a large address book may take a long time. Therefore ZLPeoplePickerViewController caches it in memory after initialization. You can further reduce the first-time delay by initializing the address book with the following class method in advance (for instance, in `viewDidLoad`).\n~~~objective-c\n+ (void)initializeAddressBook;\n~~~\n\nZLPeoplePickerViewController uses the `fieldMask` property to filter contacts, graying out those that have missing information. Currently supported fields inlucde emails, photo and addresses.\n~~~objective-c\n@property (nonatomic) ZLContactField filedMask;\n~~~\n\nThe `numberOfSelectedPeople` property controls the multiple selection behavior. It indicates the maximum number of people the picker can select at a time.\n~~~objective-c\n@property (nonatomic) ZLNumSelection numberOfSelectedPeople;\n~~~\n\nZLPeoplePickerViewController can have an optional delegate to receive callback.\n~~~objective-c\n- (void)peoplePickerViewController:(ZLPeoplePickerViewController *)peoplePicker didSelectPerson:(NSNumber *)recordId {\n  // show an ABPersonViewController\n  [self showPersonViewController:[recordId intValue] onNavigationController:peoplePicker.navigationController];\n}\n- (void)peoplePickerViewController:(ZLPeoplePickerViewController *)peoplePicker didReturnWithSelectedPeople:(NSArray *)people {\n  // people will be empty if no person is selected\n  if (!people || people.count==0) {return;}\n  [self presentViewController: [self alertControllerWithTitle:@\"Return with selected people:\" Message:[[self firstNameForPeople:people] componentsJoinedByString:@\", \"]] animated:YES completion:nil];\n}\n- (void)newPersonViewControllerDidCompleteWithNewPerson:(nullable ABRecordRef)person {\n    NSLog(@\"Added a new person\");\n}\n~~~\n\nDependencies\n---\n`ZLPeoplePickerViewController` uses `APAddressBook` internally for accessing address book. It requires [APAddressBook](https://github.com/Alterplay/APAddressBook).\n\nRequirements\n---\n- iOS 8 or higher.\n- Automatic Reference Counting (ARC).\n\nLicense\n---\nZLPeoplePickerViewController is available under MIT license. See the LICENSE file for more info.\n"
  },
  {
    "path": "ZLPeoplePickerViewController/Internal/APContact+Sorting.h",
    "content": "//\n//  APContact+Sorting.h\n//  ZLPeoplePickerViewControllerDemo\n//\n//  Created by Zhixuan Lai on 11/5/14.\n//  Copyright (c) 2014 Zhixuan Lai. All rights reserved.\n//\n\n#import <APAddressBook/APContact.h>\n\n@interface APContact (Sorting)\n\n//@property (strong,nonatomic) NSArray *santrizedPhones;\n\n- (NSString *)firstName;\n- (NSString *)lastName;\n- (NSString *)compositeName;\n\n- (NSString *)firstNameOrCompositeName;\n- (NSString *)lastNameOrCompositeName;\n//- (NSArray *)linkedContacts;\n\n@end\n"
  },
  {
    "path": "ZLPeoplePickerViewController/Internal/APContact+Sorting.m",
    "content": "//\n//  APContact+Sorting.m\n//  ZLPeoplePickerViewControllerDemo\n//\n//  Created by Zhixuan Lai on 11/5/14.\n//  Copyright (c) 2014 Zhixuan Lai. All rights reserved.\n//\n\n#import \"APContact+Sorting.h\"\n\n@implementation APContact (Sorting)\n\n- (NSString *)firstName {\n    return self.name.firstName;\n}\n\n- (NSString *)lastName {\n    return self.name.lastName;\n}\n\n- (NSString *)compositeName {\n    return self.name.compositeName;\n}\n\n- (NSString *)firstNameOrCompositeName {\n    if ([self.name.firstName length] > 0) {\n        return self.name.firstName;\n    }\n    return self.name.compositeName;\n}\n\n- (NSString *)lastNameOrCompositeName {\n    if ([self.name.lastName length] > 0) {\n        return self.name.lastName;\n    }\n    return self.name.compositeName;\n}\n\n- (NSArray *)linkedContacts {\n    return nil;\n}\n\n- (NSArray *)sanitizedPhones {\n    NSMutableArray *mutableArray = [self.phones mutableCopy];\n    for (int i = 0; i < mutableArray.count; i++) {\n        NSString *phone = mutableArray[i];\n        NSCharacterSet *setToRemove =\n            [NSCharacterSet characterSetWithCharactersInString:@\"0123456789\"];\n        NSCharacterSet *setToKeep = [setToRemove invertedSet];\n\n        mutableArray[i] =\n            [[phone componentsSeparatedByCharactersInSet:setToKeep]\n                componentsJoinedByString:@\"\"];\n    }\n    //        NSLog(@\"san phones: %@\", mutableArray);\n\n    return [mutableArray copy];\n\n    //    static dispatch_once_t onceToken;\n    //    dispatch_once(&onceToken, ^{\n    //        NSMutableArray *mutableArray = [self.phones mutableCopy];\n    //        for (int i=0;i<mutableArray.count;i++) {\n    //            NSString *phone = mutableArray[i];\n    //            NSCharacterSet *setToRemove =\n    //            [NSCharacterSet\n    //            characterSetWithCharactersInString:@\"0123456789\"];\n    //            NSCharacterSet *setToKeep = [setToRemove invertedSet];\n    //\n    //            mutableArray[i] = [[phone\n    //            componentsSeparatedByCharactersInSet:setToKeep]\n    //            componentsJoinedByString:@\"\"];\n    //        }\n    //        sanPhones = [mutableArray copy];\n    //\n    //        NSLog(@\"san phones: %@\", sanPhones);\n    //    });\n\n    //    return sanPhones;\n}\n\n@end\n"
  },
  {
    "path": "ZLPeoplePickerViewController/Internal/LRIndexedCollationWithSearch.h",
    "content": "//\n//  LRIndexedCollationWithSearch.h\n//  ContactListDemo\n//\n//  Created by Zhixuan Lai on 9/6/14.\n//  Copyright (c) 2014 Jacky Li. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\n//\n//  LRSearchableIndexCollation.m\n//\n//\n//  Copyright (c) 2010 Luke Redpath\n//  Licensed under the MIT License\n//\n\n#import <UIKit/UIKit.h>\n\n/*\n A simple decorator around UILocalizedIndexedCollation that inserts the\n {{search}} magnifying glass icon into the section index titles and adjusts\n the section index as necessary to account for the extra index item.\n\n Use as a direct replacement for UILocalizedIndexedCollation in indexed\n table views that have a search interface.\n */\n@interface LRIndexedCollationWithSearch : NSObject\n\n@property (nonatomic, readonly) NSArray *sectionTitles;\n@property (nonatomic, readonly) NSArray *sectionIndexTitles;\n\n+ (id)currentCollation;\n- (id)initWithCollation:(UILocalizedIndexedCollation *)collation;\n\n- (NSInteger)sectionForObject:(id)object collationStringSelector:(SEL)selector;\n- (NSInteger)sectionForSectionIndexTitleAtIndex:(NSInteger)indexTitleIndex;\n- (NSArray *)sortedArrayFromArray:(NSArray *)array\n          collationStringSelector:(SEL)selector;\n\n@end"
  },
  {
    "path": "ZLPeoplePickerViewController/Internal/LRIndexedCollationWithSearch.m",
    "content": "//\n//  LRIndexedCollationWithSearch.m\n//  ContactListDemo\n//\n//  Created by Zhixuan Lai on 9/6/14.\n//  Copyright (c) 2014 Jacky Li. All rights reserved.\n//\n\n#import \"LRIndexedCollationWithSearch.h\"\n\n@implementation LRIndexedCollationWithSearch {\n    UILocalizedIndexedCollation *_collation;\n}\n\n@dynamic sectionTitles;\n@dynamic sectionIndexTitles;\n\n+ (id)currentCollation;\n{\n    UILocalizedIndexedCollation *collation =\n        [UILocalizedIndexedCollation currentCollation];\n    return [[self alloc] initWithCollation:collation];\n}\n\n- (id)initWithCollation:(UILocalizedIndexedCollation *)collation;\n{\n    if (self = [super init]) {\n        _collation = collation;\n    }\n    return self;\n}\n\n#pragma mark -\n\n- (NSInteger)sectionForObject:(id)object collationStringSelector:(SEL)selector {\n    return\n        [_collation sectionForObject:object collationStringSelector:selector];\n}\n\n- (NSInteger)sectionForSectionIndexTitleAtIndex:(NSInteger)indexTitleIndex {\n    if (indexTitleIndex == 0) {\n\n        return NSNotFound;\n    }\n    return [_collation sectionForSectionIndexTitleAtIndex:indexTitleIndex - 1];\n}\n\n- (NSArray *)sortedArrayFromArray:(NSArray *)array\n          collationStringSelector:(SEL)selector {\n    return [_collation sortedArrayFromArray:array\n                    collationStringSelector:selector];\n}\n\n#pragma mark -\n#pragma mark Accessors\n\n- (NSArray *)sectionTitles;\n{ return [_collation sectionTitles]; }\n\n- (NSArray *)sectionIndexTitles;\n{\n    return [[NSArray arrayWithObject:UITableViewIndexSearch]\n        arrayByAddingObjectsFromArray:[_collation sectionIndexTitles]];\n}\n\n@end"
  },
  {
    "path": "ZLPeoplePickerViewController/Internal/ZLAddressBook.h",
    "content": "//\n//  ZLAddressBook.h\n//  ZLPeoplePickerViewControllerDemo\n//\n//  Created by Zhixuan Lai on 11/11/14.\n//  Copyright (c) 2014 Zhixuan Lai. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\nextern NSString *const ZLAddressBookDidChangeNotification;\n\n@interface ZLAddressBook : NSObject\n@property (strong, nonatomic, readonly) NSArray *contacts;\n\n+ (instancetype)sharedInstance;\n- (void)loadContacts:(void (^)(BOOL succeeded, NSError *error))completionBlock;\n\n@end\n"
  },
  {
    "path": "ZLPeoplePickerViewController/Internal/ZLAddressBook.m",
    "content": "//\n//  ZLAddressBook.m\n//  ZLPeoplePickerViewControllerDemo\n//\n//  Created by Zhixuan Lai on 11/11/14.\n//  Copyright (c) 2014 Zhixuan Lai. All rights reserved.\n//\n\n#import \"ZLAddressBook.h\"\n#import \"APAddressBook.h\"\n#import \"APContact.h\"\n\nNSString *const ZLAddressBookDidChangeNotification =\n    @\"ZLAddressBookDidChangeNotification\";\n\n@interface ZLAddressBook ()\n@property (strong, nonatomic) APAddressBook *addressBook;\n@property (strong, nonatomic, readwrite) NSArray *contacts;\n@end\n@implementation ZLAddressBook\n\n+ (instancetype)sharedInstance {\n    static dispatch_once_t pred = 0;\n    __strong static id _sharedObject = nil;\n    dispatch_once(&pred, ^{ _sharedObject = [[self alloc] init]; });\n    return _sharedObject;\n}\n\n- (instancetype)init {\n    self = [super init];\n    if (self) {\n        [self setup];\n    }\n    return self;\n}\n\n- (void)setup {\n    self.addressBook = [[APAddressBook alloc] init];\n}\n\n#pragma mark - APAddressBook\n\n- (void)loadContacts:(void (^)(BOOL succeeded, NSError *error))completionBlock {\n    __weak __typeof(self) weakSelf = self;\n    self.addressBook.fieldsMask =\n        APContactFieldDefault | APContactFieldThumbnail | APContactFieldLinkedRecordIDs |\n        APContactFieldEmailsOnly | APContactFieldEmailsWithLabels | APContactFieldAddresses;\n    self.addressBook.filterBlock = ^BOOL(APContact *contact) {\n        return contact.name.compositeName != nil;\n    };\n    [self.addressBook loadContacts:^(NSArray *contacts, NSError *error) {\n        if (!error) {\n            weakSelf.contacts = contacts;\n            if (completionBlock) {\n                completionBlock(YES, nil);\n            }\n        } else {\n            if (completionBlock) {\n                completionBlock(NO, error);\n            }\n        }\n    }];\n    [self.addressBook startObserveChangesWithCallback:^{\n        //        [weakSelf reloadData];\n        [[NSNotificationCenter defaultCenter]\n            postNotificationName:ZLAddressBookDidChangeNotification\n                          object:nil];\n    }];\n}\n\n@end\n"
  },
  {
    "path": "ZLPeoplePickerViewController/Internal/ZLBaseTableViewController.h",
    "content": "//\n//  ZLBaseTableViewController.h\n//  ZLPeoplePickerViewControllerDemo\n//\n//  Created by Zhixuan Lai on 11/5/14.\n//  Copyright (c) 2014 Zhixuan Lai. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n#import \"ZLTypes.h\"\n\n@class APContact;\n\nstatic NSString *const kCellIdentifier = @\"cellID\";\n\n@interface ZLBaseTableViewController : UITableViewController\n\n@property (strong, nonatomic) NSMutableArray *partitionedContacts;\n@property (strong, nonatomic) NSMutableSet *selectedPeople;\n@property (assign, nonatomic) BOOL shouldHideUnmaskedContacts;\n\n@property (nonatomic) ZLContactField fieldMask;\n\n- (void)setPartitionedContactsWithContacts:(NSArray *)contacts;\n- (void)configureCell:(UITableViewCell *)cell forContact:(APContact *)product;\n- (BOOL)shouldEnableCellforContact:(APContact *)contact;\n- (APContact *)contactForRowAtIndexPath:(NSIndexPath *)indexPath;\n\n@end\n"
  },
  {
    "path": "ZLPeoplePickerViewController/Internal/ZLBaseTableViewController.m",
    "content": "//\n//  ZLBaseTableViewController.m\n//  ZLPeoplePickerViewControllerDemo\n//\n//  Created by Zhixuan Lai on 11/5/14.\n//  Copyright (c) 2014 Zhixuan Lai. All rights reserved.\n//\n\n#import \"ZLBaseTableViewController.h\"\n#import \"LRIndexedCollationWithSearch.h\"\n\n#import \"APContact.h\"\n#import \"APContact+Sorting.h\"\n\n@implementation ZLBaseTableViewController\n\n#pragma mark - Properties\n- (NSMutableArray *)partitionedContacts {\n    if (!_partitionedContacts) {\n        _partitionedContacts = [[self emptyPartitionedArray] mutableCopy];\n    }\n    return _partitionedContacts;\n}\n- (NSMutableSet *)selectedPeople {\n    if (!_selectedPeople) {\n        _selectedPeople = [NSMutableSet set];\n    }\n    return _selectedPeople;\n}\n- (void)setPartitionedContactsWithContacts:(NSArray *)contacts {\n    self.partitionedContacts = [[self emptyPartitionedArray] mutableCopy];\n\n    NSMutableSet *allPhoneNumbers = [NSMutableSet set];\n    for (APContact *contact in contacts) {\n        if ([self shouldHideContact:contact]) {\n            continue;\n        }\n\n        // only display one linked contacts        \n        if(contact.phones && [contact.phones count] > 0 && ![allPhoneNumbers containsObject:contact.phones[0].number]) {\n            [allPhoneNumbers addObject:contact.phones[0].number];\n        }\n\n        // add new contact\n        SEL selector = @selector(lastName);\n        if (contact.lastName.length == 0) {\n            selector = @selector(compositeName);\n        }\n        NSInteger index = [[LRIndexedCollationWithSearch currentCollation]\n                   sectionForObject:contact\n            collationStringSelector:selector];\n        // contact.sectionIndex = index;\n        [self.partitionedContacts[index] addObject:contact];\n    }\n\n    // sort sections\n    NSUInteger sectionCount =\n        [[[LRIndexedCollationWithSearch currentCollation] sectionTitles] count];\n    int sectionCountInt =\n        [[NSNumber numberWithUnsignedInteger:sectionCount] intValue];\n    for (NSInteger i = 0; i < sectionCountInt; i++) {\n        NSArray *section = self.partitionedContacts[i];\n        NSArray *sortedSectionByLastName =\n            [[LRIndexedCollationWithSearch currentCollation]\n                   sortedArrayFromArray:section\n                collationStringSelector:@selector(lastNameOrCompositeName)];\n\n        NSMutableArray *sortedSection = [NSMutableArray array];\n        {\n            NSMutableArray *subSection = [NSMutableArray array];\n            NSString *currentLastName = [NSString string];\n            for (int i = 0; i < sortedSectionByLastName.count; i++) {\n                APContact *contact = (APContact *)sortedSectionByLastName[i];\n                NSString *lastName = [contact lastNameOrCompositeName];\n\n                if ([lastName isEqualToString:currentLastName]) {\n                    [subSection addObject:contact];\n                } else {\n                    if (subSection.count > 0) {\n                        NSArray *sortedSubSectionByFirstName =\n                            [[LRIndexedCollationWithSearch currentCollation]\n                                   sortedArrayFromArray:subSection\n                                collationStringSelector:\n                                    @selector(firstNameOrCompositeName)];\n                        [sortedSection\n                            addObjectsFromArray:sortedSubSectionByFirstName];\n                        [subSection removeAllObjects];\n                    }\n                    currentLastName = lastName;\n                    [subSection addObject:contact];\n                }\n            }\n\n            NSArray *sortedSubSectionByFirstName = [\n                [LRIndexedCollationWithSearch currentCollation]\n                   sortedArrayFromArray:subSection\n                collationStringSelector:@selector(firstNameOrCompositeName)];\n            [sortedSection addObjectsFromArray:sortedSubSectionByFirstName];\n        }\n\n        self.partitionedContacts[i] = sortedSection;\n    }\n}\n\n#pragma mark - Table view data source\n\n- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView {\n    if (self.partitionedContacts.count > 0) {\n        return [[[LRIndexedCollationWithSearch\n                currentCollation] sectionTitles] count];\n    }\n    return 0;\n}\n\n- (NSString *)tableView:(UITableView *)tableView\n    titleForHeaderInSection:(NSInteger)section {\n    if ((NSInteger)[[self.partitionedContacts\n            objectAtIndex:(NSUInteger)section] count] == 0) {\n        return @\"\";\n    }\n    return [[[LRIndexedCollationWithSearch currentCollation] sectionTitles]\n        objectAtIndex:section];\n}\n\n- (NSArray *)sectionIndexTitlesForTableView:(UITableView *)tableView {\n    return [[LRIndexedCollationWithSearch currentCollation] sectionIndexTitles];\n}\n\n- (NSInteger)tableView:(UITableView *)tableView\n    sectionForSectionIndexTitle:(NSString *)title\n                        atIndex:(NSInteger)index {\n    NSInteger ret = [[LRIndexedCollationWithSearch currentCollation]\n        sectionForSectionIndexTitleAtIndex:index];\n    if (ret == NSNotFound) {\n        [self.tableView\n            setContentOffset:CGPointMake(0.0,\n                                         -self.tableView.contentInset.top)];\n    }\n    return ret;\n}\n\n- (NSInteger)tableView:(UITableView *)tableView\n    numberOfRowsInSection:(NSInteger)section {\n    return (NSInteger)[\n        [self.partitionedContacts objectAtIndex:(NSUInteger)section] count];\n}\n\n- (UITableViewCell *)tableView:(UITableView *)tableView\n         cellForRowAtIndexPath:(NSIndexPath *)indexPath {\n\n    UITableViewCell *cell = (UITableViewCell *)\n        [tableView dequeueReusableCellWithIdentifier:kCellIdentifier];\n\n    if (cell == nil) {\n        cell =\n            [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleSubtitle\n                                   reuseIdentifier:kCellIdentifier];\n        // cell.accessoryView = nil;\n        cell.accessoryType = UITableViewCellAccessoryNone;\n        // cell.selectionStyle = UITableViewCellSelectionStyleDefault;\n    }\n\n    APContact *contact = [self contactForRowAtIndexPath:indexPath];\n    [self configureCell:cell forContact:contact];\n\n    if ([self.selectedPeople containsObject:contact.recordID]) {\n        cell.accessoryType = UITableViewCellAccessoryCheckmark;\n    } else {\n        cell.accessoryType = UITableViewCellAccessoryNone;\n    }\n\n    return cell;\n}\n\n#pragma mark - ()\n- (void)configureCell:(UITableViewCell *)cell forContact:(APContact *)contact {\n    NSString *stringToHightlight =\n        contact.lastName ? contact.lastName : contact.compositeName;\n    NSRange rangeToHightlight =\n        [contact.compositeName rangeOfString:stringToHightlight];\n    NSMutableAttributedString *attributedString = [\n        [NSMutableAttributedString alloc] initWithString:contact.compositeName];\n\n    [attributedString beginEditing];\n    [attributedString addAttribute:NSFontAttributeName\n                             value:[UIFont boldSystemFontOfSize:18]\n                             range:rangeToHightlight];\n    if (![self shouldEnableCellforContact:contact]) {\n        [attributedString addAttribute:NSForegroundColorAttributeName\n                                 value:[UIColor grayColor]\n                                 range:NSMakeRange(0, attributedString.length)];\n        cell.selectionStyle = UITableViewCellSelectionStyleNone;\n    }\n\n    [attributedString endEditing];\n\n    cell.textLabel.attributedText = attributedString;\n}\n\n- (BOOL)shouldEnableCellforContact:(APContact *)contact {\n    if(self.fieldMask == ZLContactFieldAll) {\n        return YES;\n    }\n    else {\n    return ((self.fieldMask & ZLContactFieldPhones) &&\n            contact.phones.count > 0) ||\n           ((self.fieldMask & ZLContactFieldEmails) &&\n            contact.emails.count > 0) ||\n           ((self.fieldMask & ZLContactFieldPhoto) && contact.thumbnail) ||\n           ((self.fieldMask & ZLContactFieldAddresses) &&\n            contact.addresses.count > 0);\n    }\n}\n\n- (BOOL)shouldHideContact:(APContact *)contact {\n    if (self.shouldHideUnmaskedContacts == NO) {\n        return NO;\n    }\n\n    if(self.fieldMask == ZLContactFieldAll) {\n        return NO;\n    }\n    else {\n    return ((self.fieldMask & ZLContactFieldPhones) &&\n            contact.phones.count == 0) ||\n           ((self.fieldMask & ZLContactFieldEmails) &&\n            contact.emails.count == 0) ||\n           ((self.fieldMask & ZLContactFieldPhoto) && contact.thumbnail == nil) ||\n           ((self.fieldMask & ZLContactFieldAddresses) &&\n            contact.addresses.count == 0);\n    }\n}\n\n- (APContact *)contactForRowAtIndexPath:(NSIndexPath *)indexPath {\n    return\n        [[self.partitionedContacts objectAtIndex:(NSUInteger)indexPath.section]\n            objectAtIndex:(NSUInteger)indexPath.row];\n}\n\n- (NSMutableArray *)emptyPartitionedArray {\n    NSUInteger sectionCount =\n        [[[LRIndexedCollationWithSearch currentCollation] sectionTitles] count];\n    NSMutableArray *sections = [NSMutableArray arrayWithCapacity:sectionCount];\n    for (int i = 0; i < sectionCount; i++) {\n        [sections addObject:[NSMutableArray array]];\n    }\n    return sections;\n}\n\n@end\n"
  },
  {
    "path": "ZLPeoplePickerViewController/Internal/ZLResultsTableViewController.h",
    "content": "//\n//  ZLResultsTableViewController.h\n//  ZLPeoplePickerViewControllerDemo\n//\n//  Created by Zhixuan Lai on 11/5/14.\n//  Copyright (c) 2014 Zhixuan Lai. All rights reserved.\n//\n\n#import \"ZLBaseTableViewController.h\"\n\n@interface ZLResultsTableViewController : ZLBaseTableViewController\n\n@end\n"
  },
  {
    "path": "ZLPeoplePickerViewController/Internal/ZLResultsTableViewController.m",
    "content": "//\n//  ZLResultsTableViewController.m\n//  ZLPeoplePickerViewControllerDemo\n//\n//  Created by Zhixuan Lai on 11/5/14.\n//  Copyright (c) 2014 Zhixuan Lai. All rights reserved.\n//\n\n#import \"ZLResultsTableViewController.h\"\n#import \"APContact.h\"\n\n@implementation ZLResultsTableViewController\n\n@end\n"
  },
  {
    "path": "ZLPeoplePickerViewController/Internal/ZLTypes.h",
    "content": "//\n//  ZLTypes.h\n//  ZLPeoplePickerViewControllerDemo\n//\n//  Created by Zhixuan Lai on 11/11/14.\n//  Copyright (c) 2014 Zhixuan Lai. All rights reserved.\n//\n\n#ifndef ZLPeoplePickerViewControllerDemo_ZLTypes_h\n#define ZLPeoplePickerViewControllerDemo_ZLTypes_h\n\ntypedef NS_ENUM(NSUInteger, ZLNumSelection) {\n    ZLNumSelectionNone = 0,\n    ZLNumSelectionMax = NSUIntegerMax\n};\n\ntypedef NS_OPTIONS(NSUInteger, ZLContactField){\n    ZLContactFieldPhones = 1 << 3, ZLContactFieldEmails = 1 << 4,\n    ZLContactFieldPhoto = 1 << 5, ZLContactFieldAddresses = 1 << 9,\n    ZLContactFieldDefault = ZLContactFieldPhones, ZLContactFieldAll = 0xFFFF};\n\n#endif\n"
  },
  {
    "path": "ZLPeoplePickerViewController/ZLPeoplePickerViewController.h",
    "content": "//\n//  ZLPeoplePickerViewController.h\n//  ZLPeoplePickerViewControllerDemo\n//\n//  Created by Zhixuan Lai on 11/4/14.\n//  Copyright (c) 2014 Zhixuan Lai. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n#import <AddressBook/AddressBook.h>\n#import \"ZLBaseTableViewController.h\"\n\n@class ZLPeoplePickerViewController;\n\n@protocol ZLPeoplePickerViewControllerDelegate <NSObject>\n\n/**\n *  Tells the delegate that the people picker has selected a person.\n *\n *  @param peoplePicker The people picker object providing this information.\n *  @param recordId     The person's recordId in ABAddressBook\n */\n- (void)peoplePickerViewController:(nonnull ZLPeoplePickerViewController *)peoplePicker\n                   didSelectPerson:(nonnull NSNumber * )recordId;\n\n/**\n *  Tells the delegate that the people picker has returned and, if the type is\n *multiple, selected contacts.\n *\n *  @param peoplePicker The people picker object providing this information.\n *  @param people     An set of recordIds\n */\n- (void)peoplePickerViewController:(nonnull ZLPeoplePickerViewController *)peoplePicker\n       didReturnWithSelectedPeople:(nonnull NSSet *)people;\n\n/**\n *  Tells the delegate that the people picker's ABNewPersonViewController did complete\n *  with a new person (can be NULL)\n *\n *  @param person     A valid person that was saved into the Address Book, otherwise NULL\n */\n\n-(void)newPersonViewControllerDidCompleteWithNewPerson:(nullable ABRecordRef)person;\n\n@end\n\n@interface ZLPeoplePickerViewController : ZLBaseTableViewController\n@property (weak, nonatomic, nullable) id<ZLPeoplePickerViewControllerDelegate> delegate;\n@property (nonatomic) ZLNumSelection numberOfSelectedPeople;\n@property (nonatomic, assign) BOOL allowAddPeople;\n\n+ (void)initializeAddressBook;\n//- (id)init __attribute__((unavailable(\"-init is not allowed, use\n//-initWithType: instead\")));\n- (nonnull instancetype)initWithStyle:(UITableViewStyle)style __attribute__((unavailable(\n                        \"-initWithStyle is not allowed, use -init instead\")));\n+ (nonnull instancetype)presentPeoplePickerViewControllerForParentViewController:\n        (nullable __kindof id<ZLPeoplePickerViewControllerDelegate>)parentViewController;\n@end\n"
  },
  {
    "path": "ZLPeoplePickerViewController/ZLPeoplePickerViewController.m",
    "content": "//\n//  ZLPeoplePickerViewController.m\n//  ZLPeoplePickerViewControllerDemo\n//\n//  Created by Zhixuan Lai on 11/4/14.\n//  Copyright (c) 2014 Zhixuan Lai. All rights reserved.\n//\n\n#import \"ZLPeoplePickerViewController.h\"\n#import \"ZLResultsTableViewController.h\"\n\n#import <AddressBook/AddressBook.h>\n#import <AddressBookUI/AddressBookUI.h>\n\n#import \"ZLAddressBook.h\"\n#import \"APContact+Sorting.h\"\n\n@interface ZLPeoplePickerViewController () <\n    ABPeoplePickerNavigationControllerDelegate, ABPersonViewControllerDelegate,\n    ABNewPersonViewControllerDelegate, ABUnknownPersonViewControllerDelegate,\n    UISearchBarDelegate, UISearchControllerDelegate, UISearchResultsUpdating>\n@property (nonatomic, strong) UISearchController *searchController;\n@property (nonatomic, strong) ZLResultsTableViewController *resultsTableViewController;\n\n// for state restoration\n@property BOOL searchControllerWasActive;\n@property BOOL searchControllerSearchFieldWasFirstResponder;\n\n@end\n\n@implementation ZLPeoplePickerViewController\n\n- (instancetype)init {\n    self = [super init];\n    if (self) {\n        [self setup];\n    }\n    return self;\n}\n\n- (void)setup {\n    _numberOfSelectedPeople = ZLNumSelectionNone;\n    self.fieldMask = ZLContactFieldDefault;\n    self.allowAddPeople = YES;\n}\n\n+ (void)initializeAddressBook {\n    [[ZLAddressBook sharedInstance] loadContacts:nil];\n}\n\n- (void)viewDidLoad {\n    [super viewDidLoad];\n\n    self.resultsTableViewController = [[ZLResultsTableViewController alloc] init];\n    self.searchController = [[UISearchController alloc]\n        initWithSearchResultsController:self.resultsTableViewController];\n    self.searchController.searchResultsUpdater = self;\n    [self.searchController.searchBar sizeToFit];\n    self.tableView.tableHeaderView = self.searchController.searchBar;\n\n    // we want to be the delegate for our filtered table so\n    // didSelectRowAtIndexPath is called for both tables\n    self.resultsTableViewController.tableView.delegate = self;\n    self.searchController.delegate = self;\n    //    self.searchController.dimsBackgroundDuringPresentation = NO; //\n    //    default is YES\n    self.searchController.searchBar.delegate =\n        self; // so we can monitor text changes + others\n\n    // Search is now just presenting a view controller. As such, normal view\n    // controller\n    // presentation semantics apply. Namely that presentation will walk up the\n    // view controller\n    // hierarchy until it finds the root view controller or one that defines a\n    // presentation context.\n    //\n    self.definesPresentationContext =\n        YES; // know where you want UISearchController to be displayed\n\n    self.refreshControl = [[UIRefreshControl alloc] init];\n    [self.tableView addSubview:self.refreshControl];\n    [self.refreshControl addTarget:self\n                            action:@selector(refreshControlAction:)\n                  forControlEvents:UIControlEventValueChanged];\n    [self refreshControlAction:self.refreshControl];\n\n    // Uncomment the following line to preserve selection between presentations.\n    // self.clearsSelectionOnViewWillAppear = NO;\n\n    self.navigationItem.title = self.title.length > 0 ? self.title : NSLocalizedString(@\"Contacts\", nil);\n    \n    if (self.allowAddPeople) {\n        self.navigationItem.rightBarButtonItem = [[UIBarButtonItem alloc]\n                                                  initWithBarButtonSystemItem:UIBarButtonSystemItemAdd\n                                                  target:self\n                                                  action:@selector(showNewPersonViewController)];\n    }\n    \n    [[NSNotificationCenter defaultCenter]\n        addObserver:self\n           selector:@selector(addressBookDidChangeNotification:)\n               name:ZLAddressBookDidChangeNotification\n             object:nil];\n}\n\n- (void)viewDidAppear:(BOOL)animated {\n    [super viewDidAppear:animated];\n\n    // restore the searchController's active state\n    if (self.searchControllerWasActive) {\n        self.searchController.active = self.searchControllerWasActive;\n        _searchControllerWasActive = NO;\n\n        if (self.searchControllerSearchFieldWasFirstResponder) {\n            [self.searchController.searchBar becomeFirstResponder];\n            _searchControllerSearchFieldWasFirstResponder = NO;\n        }\n    }\n}\n\n- (void)didMoveToParentViewController:(UIViewController *)parent {\n    if (![parent isEqual:self.parentViewController]) {\n        [self invokeReturnDelegate];\n    }\n}\n\n- (void)dealloc {\n    [[NSNotificationCenter defaultCenter]\n        removeObserver:self\n                  name:ZLAddressBookDidChangeNotification\n                object:nil];\n}\n\n#pragma mark - Action\n+ (instancetype)presentPeoplePickerViewControllerForParentViewController:\n                    (nullable __kindof id<ZLPeoplePickerViewControllerDelegate>)parentViewController {\n    UINavigationController *navController =\n        [[UINavigationController alloc] init];\n    ZLPeoplePickerViewController *peoplePicker =\n        [[ZLPeoplePickerViewController alloc] init];\n    [navController pushViewController:peoplePicker animated:NO];\n    peoplePicker.navigationItem.leftBarButtonItem = [[UIBarButtonItem alloc]\n        initWithBarButtonSystemItem:UIBarButtonSystemItemDone\n                             target:peoplePicker\n                             action:@selector(doneButtonAction:)];\n    peoplePicker.delegate = parentViewController;\n    [parentViewController presentViewController:navController\n                                       animated:YES\n                                     completion:nil];\n    return peoplePicker;\n}\n\n- (void)doneButtonAction:(id)sender {\n    [self dismissViewControllerAnimated:YES completion:nil];\n    [self invokeReturnDelegate];\n}\n\n- (void)refreshControlAction:(UIRefreshControl *)aRefreshControl {\n    [aRefreshControl beginRefreshing];\n    [self reloadData:^(BOOL succeeded, NSError *error) {\n        [aRefreshControl endRefreshing];\n    }];\n}\n\n- (void)addressBookDidChangeNotification:(NSNotification *)note {\n    [self performSelector:@selector(reloadData) withObject:nil];\n}\n\n- (void)reloadData {\n    [self reloadData:nil];\n}\n\n- (void)reloadData:(void (^)(BOOL succeeded, NSError *error))completionBlock {\n    __weak __typeof(self) weakSelf = self;\n    if ([ZLAddressBook sharedInstance].contacts.count > 0) {\n        [weakSelf\n            setPartitionedContactsWithContacts:[ZLAddressBook sharedInstance]\n                                                   .contacts];\n        [weakSelf.tableView reloadData];\n    }\n    [[ZLAddressBook sharedInstance]\n        loadContacts:^(BOOL succeeded, NSError *error) {\n            if (!error) {\n                [weakSelf setPartitionedContactsWithContacts:\n                              [ZLAddressBook sharedInstance].contacts];\n                [weakSelf.tableView reloadData];\n                if (completionBlock) {\n                    completionBlock(YES, nil);\n                }\n            } else {\n                if (completionBlock) {\n                    completionBlock(NO, nil);\n                }\n            }\n        }];\n}\n\n#pragma mark - UISearchBarDelegate\n\n- (void)searchBarCancelButtonClicked:(UISearchBar *)aSearchBar {\n    [aSearchBar resignFirstResponder];\n}\n\n- (void)searchBarTextDidBeginEditing:(UISearchBar *)aSearchBar {\n    [aSearchBar setShowsCancelButton:YES animated:YES];\n}\n\n- (void)searchBarTextDidEndEditing:(UISearchBar *)aSearchBar {\n    [aSearchBar setShowsCancelButton:NO animated:YES];\n}\n\n#pragma mark - UITableViewDelegate\n\n- (void)tableView:(UITableView *)tableView\n    didSelectRowAtIndexPath:(NSIndexPath *)indexPath {\n    [tableView deselectRowAtIndexPath:indexPath animated:YES];\n\n    APContact *contact = [self contactForRowAtIndexPath:indexPath];\n\n    if (![tableView isEqual:self.tableView]) {\n        contact = [(ZLResultsTableViewController *)\n                       self.searchController.searchResultsController\n            contactForRowAtIndexPath:indexPath];\n    }\n\n    if (![self shouldEnableCellforContact:contact]) {\n        return;\n    }\n\n    if (self.delegate &&\n        [self.delegate\n            respondsToSelector:@selector(peoplePickerViewController:\n                                                    didSelectPerson:)]) {\n        [self.delegate peoplePickerViewController:self\n                                  didSelectPerson:contact.recordID];\n    }\n\n    if ([self.selectedPeople containsObject:contact.recordID]) {\n        [self.selectedPeople removeObject:contact.recordID];\n    } else {\n        if (self.selectedPeople.count < self.numberOfSelectedPeople) {\n            [self.selectedPeople addObject:contact.recordID];\n        }\n    }\n\n    //    NSLog(@\"heree\");\n\n    [tableView reloadData];\n    [self.tableView reloadData];\n}\n\n#pragma mark - UISearchResultsUpdating\n\n- (void)updateSearchResultsForSearchController:\n            (UISearchController *)searchController {\n    // update the filtered array based on the search text\n    NSString *searchText = searchController.searchBar.text;\n    NSMutableArray *searchResults = [[self.partitionedContacts\n        valueForKeyPath:@\"@unionOfArrays.self\"] mutableCopy];\n\n    // strip out all the leading and trailing spaces\n    NSString *strippedStr =\n        [searchText stringByTrimmingCharactersInSet:\n                        [NSCharacterSet whitespaceCharacterSet]];\n\n    // break up the search terms (separated by spaces)\n    NSArray *searchItems = nil;\n    if (strippedStr.length > 0) {\n        searchItems = [strippedStr componentsSeparatedByString:@\" \"];\n    }\n    // build all the \"AND\" expressions for each value in the searchString\n    NSMutableArray *andMatchPredicates = [NSMutableArray array];\n\n    for (NSString *searchString in searchItems) {\n        NSMutableArray *searchItemsPredicate = [NSMutableArray array];\n\n        // TODO: match phone number matching\n\n        // name field matching\n        NSPredicate *finalPredicate = [NSPredicate\n            predicateWithFormat:@\"compositeName CONTAINS[c] %@\", searchString];\n        [searchItemsPredicate addObject:finalPredicate];\n\n        NSPredicate *predicate =\n            [NSPredicate predicateWithFormat:@\"ANY SELF.emails.address CONTAINS[c] %@\",\n                                             searchString];\n        [searchItemsPredicate addObject:predicate];\n\n        predicate = [NSPredicate\n            predicateWithFormat:@\"ANY SELF.addresses.street CONTAINS[c] %@\",\n                                searchString];\n        [searchItemsPredicate addObject:predicate];\n        predicate = [NSPredicate\n            predicateWithFormat:@\"ANY SELF.addresses.city CONTAINS[c] %@\",\n                                searchString];\n        [searchItemsPredicate addObject:predicate];\n        predicate = [NSPredicate\n            predicateWithFormat:@\"ANY SELF.addresses.zip CONTAINS[c] %@\",\n                                searchString];\n        [searchItemsPredicate addObject:predicate];\n        predicate = [NSPredicate\n            predicateWithFormat:@\"ANY SELF.addresses.country CONTAINS[c] %@\",\n                                searchString];\n        [searchItemsPredicate addObject:predicate];\n        predicate = [NSPredicate\n            predicateWithFormat:\n                @\"ANY SELF.addresses.countryCode CONTAINS[c] %@\", searchString];\n        [searchItemsPredicate addObject:predicate];\n\n        //        NSNumberFormatter *numFormatter = [[NSNumberFormatter alloc]\n        //        init];\n        //        [numFormatter setNumberStyle:NSNumberFormatterNoStyle];\n        //        NSNumber *targetNumber = [numFormatter\n        //        numberFromString:searchString];\n        //        if (targetNumber != nil) {   // searchString may not convert\n        //        to a number\n        //            predicate = [NSPredicate predicateWithFormat:@\"ANY\n        //            SELF.sanitizePhones CONTAINS[c] %@\", searchString];\n        //            [searchItemsPredicate addObject:predicate];\n        //        }\n\n        // at this OR predicate to our master AND predicate\n        NSCompoundPredicate *orMatchPredicates =\n            (NSCompoundPredicate *)[NSCompoundPredicate\n                orPredicateWithSubpredicates:searchItemsPredicate];\n        [andMatchPredicates addObject:orMatchPredicates];\n    }\n\n    NSCompoundPredicate *finalCompoundPredicate = nil;\n\n    // match up the fields of the Product object\n    finalCompoundPredicate = (NSCompoundPredicate *)\n        [NSCompoundPredicate andPredicateWithSubpredicates:andMatchPredicates];\n\n    searchResults = [[searchResults\n        filteredArrayUsingPredicate:finalCompoundPredicate] mutableCopy];\n\n    // hand over the filtered results to our search results table\n    ZLResultsTableViewController *tableController =\n        (ZLResultsTableViewController *)\n            self.searchController.searchResultsController;\n    tableController.fieldMask = self.fieldMask;\n    tableController.selectedPeople = self.selectedPeople;\n    [tableController setPartitionedContactsWithContacts:searchResults];\n    [tableController.tableView reloadData];\n}\n\n#pragma mark - ABAdressBookUI\n\n#pragma mark Create a new person\n- (void)showNewPersonViewController {\n    ABNewPersonViewController *picker =\n        [[ABNewPersonViewController alloc] init];\n    picker.newPersonViewDelegate = self;\n\n    UINavigationController *navigation =\n        [[UINavigationController alloc] initWithRootViewController:picker];\n    [self presentViewController:navigation animated:YES completion:nil];\n}\n#pragma mark ABNewPersonViewControllerDelegate methods\n// Dismisses the new-person view controller.\n- (void)newPersonViewController:\n            (ABNewPersonViewController *)newPersonViewController\n       didCompleteWithNewPerson:(ABRecordRef)person {\n    [self dismissViewControllerAnimated:YES completion:NULL];\n    if (self.delegate &&\n        [self.delegate\n         respondsToSelector:@selector(newPersonViewControllerDidCompleteWithNewPerson:)]) {\n            [self.delegate newPersonViewControllerDidCompleteWithNewPerson:person];\n         }\n}\n#pragma mark ABUnknownPersonViewControllerDelegate\n- (void)unknownPersonViewController:(ABUnknownPersonViewController *)unknownCardViewController\n                 didResolveToPerson:(ABRecordRef)person {\n\n}\n#pragma mark ABPersonViewControllerDelegate\n- (BOOL)personViewController:(ABPersonViewController *)personViewController\n    shouldPerformDefaultActionForPerson:(ABRecordRef)person\n                               property:(ABPropertyID)property\n                             identifier:\n                                 (ABMultiValueIdentifier)identifierForValue {\n    return NO;\n}\n\n#pragma mark - ()\n- (void)invokeReturnDelegate {\n    if (self.delegate &&\n        [self.delegate\n            respondsToSelector:@selector(peoplePickerViewController:\n                                        didReturnWithSelectedPeople:)]) {\n        [self.delegate peoplePickerViewController:self\n                      didReturnWithSelectedPeople:[self.selectedPeople copy]];\n    }\n}\n\n@end\n"
  },
  {
    "path": "ZLPeoplePickerViewController.podspec",
    "content": "Pod::Spec.new do |s|\n  s.name         = \"ZLPeoplePickerViewController\"\n  s.version      = \"0.2.0\"\n  s.summary      = \"A drop-in contact picker that supports UILocalized​Indexed​Collation.\"\n\n  s.description  = <<-DESC\n                   ZLPeoplePickerViewController is a drop-in contact picker that supports UILocalized​Indexed​Collation.\n\n                   Features:\n                   ---\n                   - Supports multilingual indexing and sorting by implementing UILocalized​Indexed​Collation using LRIndexedCollationWithSearch.\n                   - Supports searching by name, emails and addresses. The results are displayed using UISearchController in iOS 8.\n                   - Supports multiple selection.\n                   - Supports field mask for filtering contacts.\n                   DESC\n\n  s.homepage     = \"https://github.com/zhxnlai/ZLPeoplePickerViewController\"\n  s.screenshots  = \"https://raw.githubusercontent.com/zhxnlai/ZLPeoplePickerViewController/master/Previews/personVCPreview.gif\", \"https://raw.githubusercontent.com/zhxnlai/ZLPeoplePickerViewController/master/Previews/emailsPreview.gif\"\n  s.license      = { :type => \"MIT\", :file => \"LICENSE\" }\n  s.author       = { \"Zhixuan Lai\" => \"zhxnlai@gmail.com\" }\n  s.platform     = :ios, \"8.0\"\n  s.source       = { :git => \"https://github.com/zhxnlai/ZLPeoplePickerViewController.git\", :tag => \"0.2.0\" }\n  s.source_files = \"ZLPeoplePickerViewController\", \"ZLPeoplePickerViewController/**/*.{h,m}\"\n  s.frameworks   = \"UIKit\", \"AddressBook\", \"AddressBookUI\"\n  s.requires_arc = true\n  s.dependency \"APAddressBook\", '0.2.1'\nend\n"
  },
  {
    "path": "ZLPeoplePickerViewControllerDemo/Podfile",
    "content": "# Uncomment this line to define a global platform for your project\n# platform :ios, '6.0'\n\nsource 'https://github.com/CocoaPods/Specs.git'\n\ntarget 'ZLPeoplePickerViewControllerDemo' do\n\npod 'APAddressBook'\n\nend\n\ntarget 'ZLPeoplePickerViewControllerDemoTests' do\n\nend\n\n"
  },
  {
    "path": "ZLPeoplePickerViewControllerDemo/ZLPeoplePickerViewControllerDemo/AppDelegate.h",
    "content": "//\n//  AppDelegate.h\n//  ZLPeoplePickerViewControllerDemo\n//\n//  Created by Zhixuan Lai on 11/4/14.\n//  Copyright (c) 2014 Zhixuan Lai. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface AppDelegate : UIResponder <UIApplicationDelegate>\n\n@property (strong, nonatomic) UIWindow *window;\n\n@end\n"
  },
  {
    "path": "ZLPeoplePickerViewControllerDemo/ZLPeoplePickerViewControllerDemo/AppDelegate.m",
    "content": "//\n//  AppDelegate.m\n//  ZLPeoplePickerViewControllerDemo\n//\n//  Created by Zhixuan Lai on 11/4/14.\n//  Copyright (c) 2014 Zhixuan Lai. All rights reserved.\n//\n\n#import \"AppDelegate.h\"\n#import \"DemoTableViewController.h\"\n\n@interface AppDelegate ()\n\n@end\n\n@implementation AppDelegate\n\n- (BOOL)application:(UIApplication *)application\n    didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {\n    // Override point for customization after application launch.\n\n    DemoTableViewController *homeTVC =\n        [[DemoTableViewController alloc] initWithStyle:UITableViewStyleGrouped];\n    UINavigationController *navController =\n        [[UINavigationController alloc] initWithRootViewController:homeTVC];\n\n    self.window =\n        [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];\n    self.window.rootViewController = navController;\n    [self.window makeKeyAndVisible];\n\n    return YES;\n}\n\n- (void)applicationWillResignActive:(UIApplication *)application {\n    // Sent when the application is about to move from active to inactive state.\n    // This can occur for certain types of temporary interruptions (such as an\n    // incoming phone call or SMS message) or when the user quits the\n    // application and it begins the transition to the background state.\n    // Use this method to pause ongoing tasks, disable timers, and throttle down\n    // OpenGL ES frame rates. Games should use this method to pause the game.\n}\n\n- (void)applicationDidEnterBackground:(UIApplication *)application {\n    // Use this method to release shared resources, save user data, invalidate\n    // timers, and store enough application state information to restore your\n    // application to its current state in case it is terminated later.\n    // If your application supports background execution, this method is called\n    // instead of applicationWillTerminate: when the user quits.\n}\n\n- (void)applicationWillEnterForeground:(UIApplication *)application {\n    // Called as part of the transition from the background to the inactive\n    // state; here you can undo many of the changes made on entering the\n    // background.\n}\n\n- (void)applicationDidBecomeActive:(UIApplication *)application {\n    // Restart any tasks that were paused (or not yet started) while the\n    // application was inactive. If the application was previously in the\n    // background, optionally refresh the user interface.\n}\n\n- (void)applicationWillTerminate:(UIApplication *)application {\n    // Called when the application is about to terminate. Save data if\n    // appropriate. See also applicationDidEnterBackground:.\n}\n\n@end\n"
  },
  {
    "path": "ZLPeoplePickerViewControllerDemo/ZLPeoplePickerViewControllerDemo/Base.lproj/LaunchScreen.xib",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?>\n<document type=\"com.apple.InterfaceBuilder3.CocoaTouch.XIB\" version=\"3.0\" toolsVersion=\"6250\" systemVersion=\"14B17\" targetRuntime=\"iOS.CocoaTouch\" propertyAccessControl=\"none\" useAutolayout=\"YES\" launchScreen=\"YES\" useTraitCollections=\"YES\">\n    <dependencies>\n        <plugIn identifier=\"com.apple.InterfaceBuilder.IBCocoaTouchPlugin\" version=\"6244\"/>\n        <capability name=\"Constraints with non-1.0 multipliers\" minToolsVersion=\"5.1\"/>\n    </dependencies>\n    <objects>\n        <placeholder placeholderIdentifier=\"IBFilesOwner\" id=\"-1\" userLabel=\"File's Owner\"/>\n        <placeholder placeholderIdentifier=\"IBFirstResponder\" id=\"-2\" customClass=\"UIResponder\"/>\n        <view contentMode=\"scaleToFill\" id=\"iN0-l3-epB\">\n            <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"480\" height=\"480\"/>\n            <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" heightSizable=\"YES\"/>\n            <subviews>\n                <label opaque=\"NO\" clipsSubviews=\"YES\" userInteractionEnabled=\"NO\" contentMode=\"left\" horizontalHuggingPriority=\"251\" verticalHuggingPriority=\"251\" text=\"  Copyright (c) 2014 Zhixuan Lai. All rights reserved.\" textAlignment=\"center\" lineBreakMode=\"tailTruncation\" baselineAdjustment=\"alignBaselines\" minimumFontSize=\"9\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"8ie-xW-0ye\">\n                    <rect key=\"frame\" x=\"20\" y=\"439\" width=\"441\" height=\"21\"/>\n                    <fontDescription key=\"fontDescription\" type=\"system\" pointSize=\"17\"/>\n                    <color key=\"textColor\" cocoaTouchSystemColor=\"darkTextColor\"/>\n                    <nil key=\"highlightedColor\"/>\n                </label>\n                <label opaque=\"NO\" clipsSubviews=\"YES\" userInteractionEnabled=\"NO\" contentMode=\"left\" horizontalHuggingPriority=\"251\" verticalHuggingPriority=\"251\" text=\"ZLPeoplePickerViewControllerDemo\" textAlignment=\"center\" lineBreakMode=\"middleTruncation\" baselineAdjustment=\"alignBaselines\" minimumFontSize=\"18\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"kId-c2-rCX\">\n                    <rect key=\"frame\" x=\"20\" y=\"140\" width=\"441\" height=\"43\"/>\n                    <fontDescription key=\"fontDescription\" type=\"boldSystem\" pointSize=\"36\"/>\n                    <color key=\"textColor\" cocoaTouchSystemColor=\"darkTextColor\"/>\n                    <nil key=\"highlightedColor\"/>\n                </label>\n            </subviews>\n            <color key=\"backgroundColor\" white=\"1\" alpha=\"1\" colorSpace=\"custom\" customColorSpace=\"calibratedWhite\"/>\n            <constraints>\n                <constraint firstItem=\"kId-c2-rCX\" firstAttribute=\"centerY\" secondItem=\"iN0-l3-epB\" secondAttribute=\"bottom\" multiplier=\"1/3\" constant=\"1\" id=\"5cJ-9S-tgC\"/>\n                <constraint firstAttribute=\"centerX\" secondItem=\"kId-c2-rCX\" secondAttribute=\"centerX\" id=\"Koa-jz-hwk\"/>\n                <constraint firstAttribute=\"bottom\" secondItem=\"8ie-xW-0ye\" secondAttribute=\"bottom\" constant=\"20\" id=\"Kzo-t9-V3l\"/>\n                <constraint firstItem=\"8ie-xW-0ye\" firstAttribute=\"leading\" secondItem=\"iN0-l3-epB\" secondAttribute=\"leading\" constant=\"20\" symbolic=\"YES\" id=\"MfP-vx-nX0\"/>\n                <constraint firstAttribute=\"centerX\" secondItem=\"8ie-xW-0ye\" secondAttribute=\"centerX\" id=\"ZEH-qu-HZ9\"/>\n                <constraint firstItem=\"kId-c2-rCX\" firstAttribute=\"leading\" secondItem=\"iN0-l3-epB\" secondAttribute=\"leading\" constant=\"20\" symbolic=\"YES\" id=\"fvb-Df-36g\"/>\n            </constraints>\n            <nil key=\"simulatedStatusBarMetrics\"/>\n            <freeformSimulatedSizeMetrics key=\"simulatedDestinationMetrics\"/>\n            <point key=\"canvasLocation\" x=\"548\" y=\"455\"/>\n        </view>\n    </objects>\n</document>\n"
  },
  {
    "path": "ZLPeoplePickerViewControllerDemo/ZLPeoplePickerViewControllerDemo/DemoTableViewController.h",
    "content": "//\n//  HomeTableViewController.h\n//  ZLPeoplePickerViewControllerDemo\n//\n//  Created by Zhixuan Lai on 11/6/14.\n//  Copyright (c) 2014 Zhixuan Lai. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n// UITableView\ntypedef NS_ENUM(NSInteger, DemoTableViewControllerSections) {\n    DemoTableViewControllerSectionPresentationType,\n    DemoTableViewControllerSectionNumSelectionType,\n    DemoTableViewControllerSectionFieldMaskType,\n    DemoTableViewControllerSectionActionType,\n    DemoTableViewControllerSectionShowButton,\n    DemoTableViewControllerSectionCount,\n};\n\ntypedef NS_ENUM(NSInteger, DemoTableViewControllerSectionNumSelectionTypeRows) {\n    DemoTableViewControllerSectionNumSelectionTypeRowSegmentedControl,\n    DemoTableViewControllerSectionNumSelectionTypeRowSlider,\n    DemoTableViewControllerSectionNumSelectionTypeRowCount,\n};\n\ntypedef NS_ENUM(NSInteger, DemoTableViewControllerSectionActionTypeRows) {\n    DemoTableViewControllerSectionActionTypeRowSelection,\n    DemoTableViewControllerSectionActionTypeRowReturn,\n    DemoTableViewControllerSectionActionTypeRowCount,\n};\n\n// UISegmentedControl\ntypedef NS_ENUM(NSInteger, DemoTableViewControllerSectionPresentationTypes) {\n    DemoTableViewControllerSectionPresentationTypeNormal,\n    DemoTableViewControllerSectionPresentationTypeNav,\n    DemoTableViewControllerSectionPresentationTypeCount,\n};\n\ntypedef NS_ENUM(NSInteger, DemoTableViewControllerSectionNumSelectionTypes) {\n    DemoTableViewControllerSectionNumSelectionTypeNone,\n    DemoTableViewControllerSectionNumSelectionTypeMax,\n    DemoTableViewControllerSectionNumSelectionTypeCustom,\n    DemoTableViewControllerSectionNumSelectionTypeCount\n};\n\ntypedef NS_ENUM(NSInteger, DemoTableViewControllerSectionFieldMaskTypes) {\n    DemoTableViewControllerSectionFieldMaskTypeAll,\n    DemoTableViewControllerSectionFieldMaskTypePhones,\n    DemoTableViewControllerSectionFieldMaskTypeEmails,\n    DemoTableViewControllerSectionFieldMaskTypePhoto,\n    DemoTableViewControllerSectionFieldMaskTypeCount\n};\n\ntypedef NS_ENUM(NSInteger, DemoTableViewControllerSectionFieldMaskRows) {\n    DemoTableViewControllerSectionFieldMaskTypesRow,\n    DemoTableViewControllerSectionFieldMaskFilterRow,\n    DemoTableViewControllerSectionFieldMaskRowCount\n};\n\ntypedef NS_ENUM(NSInteger, DemoTableViewControllerSectionSelectionActionTypes) {\n    DemoTableViewControllerSectionSelectionActionTypePersonViewController,\n    DemoTableViewControllerSectionSelectionActionTypeAlert,\n    DemoTableViewControllerSectionSelectionActionTypeCount,\n};\n\ntypedef NS_ENUM(NSInteger, DemoTableViewControllerSectionReturnActionTypes) {\n    DemoTableViewControllerSectionReturnActionTypeEmail,\n    DemoTableViewControllerSectionReturnActionTypeAlert,\n    DemoTableViewControllerSectionReturnActionTypeCount,\n};\n\n@interface DemoTableViewController : UITableViewController\n\n@end\n"
  },
  {
    "path": "ZLPeoplePickerViewControllerDemo/ZLPeoplePickerViewControllerDemo/DemoTableViewController.m",
    "content": "//\n//  HomeTableViewController.m\n//  ZLPeoplePickerViewControllerDemo\n//\n//  Created by Zhixuan Lai on 11/6/14.\n//  Copyright (c) 2014 Zhixuan Lai. All rights reserved.\n//\n\n#import \"DemoTableViewController.h\"\n#import \"ZLPeoplePickerViewController.h\"\n\n#import <AddressBook/AddressBook.h>\n#import <AddressBookUI/AddressBookUI.h>\n#import <MessageUI/MessageUI.h>\n\nstatic int numSelectionSliderMaxValue = 10;\n\n@interface DemoTableViewController () <\n    ABPeoplePickerNavigationControllerDelegate, ABPersonViewControllerDelegate,\n    ZLPeoplePickerViewControllerDelegate, MFMailComposeViewControllerDelegate>\n@property (nonatomic, assign) ABAddressBookRef addressBookRef;\n\n@property (nonatomic, strong) ZLPeoplePickerViewController *peoplePicker;\n\n@property (strong, nonatomic) UISegmentedControl *presentationSegmentedControl;\n@property (strong, nonatomic) UISegmentedControl *numSelectionSegmentedControl;\n@property (strong, nonatomic) UISlider *numSelectionSlider;\n@property (strong, nonatomic) UILabel *numSelectionLabel;\n@property (strong, nonatomic) UISegmentedControl *fieldMaskSegmentedControl;\n@property (strong, nonatomic)\n    UISegmentedControl *selectionActionSegmentedControl;\n@property (strong, nonatomic) UISegmentedControl *returnActionSegmentedControl;\n@property (strong, nonatomic) UISwitch *fieldMaskFilterSwitch;\n@end\n\n@implementation DemoTableViewController\n\n- (void)viewDidLoad {\n    [super viewDidLoad];\n    self.navigationItem.title = @\"ZLPeoplePickerViewController\";\n\n    _addressBookRef = ABAddressBookCreateWithOptions(NULL, NULL);\n    [ZLPeoplePickerViewController initializeAddressBook];\n}\n\n- (void)viewDidAppear:(BOOL)animated {\n    [super viewDidAppear:animated];\n    [self numSelectionSegmentedControlAction:self.numSelectionSegmentedControl];\n}\n\n- (void)numSelectionSegmentedControlAction:(UISegmentedControl *)control {\n    self.selectionActionSegmentedControl.enabled =\n        control.selectedSegmentIndex ==\n        DemoTableViewControllerSectionNumSelectionTypeNone;\n    self.returnActionSegmentedControl.enabled =\n        control.selectedSegmentIndex ==\n        DemoTableViewControllerSectionNumSelectionTypeMax;\n    self.numSelectionSlider.enabled =\n        control.selectedSegmentIndex ==\n        DemoTableViewControllerSectionNumSelectionTypeCustom;\n\n    if (self.numSelectionSlider.enabled) {\n        [self numSelectionSliderAction:self.numSelectionSlider];\n    }\n}\n\n- (void)numSelectionSliderAction:(UISlider *)slider {\n    self.numSelectionLabel.text = [self customNumSelectionTypeDescription];\n\n    self.selectionActionSegmentedControl.enabled =\n        [self customNumSelectionType] == ZLNumSelectionNone;\n    self.returnActionSegmentedControl.enabled =\n        [self customNumSelectionType] != ZLNumSelectionNone;\n}\n\n#pragma mark - ZLPeoplePickerViewControllerDelegate\n- (void)peoplePickerViewController:(ZLPeoplePickerViewController *)peoplePicker\n                   didSelectPerson:(NSNumber *)recordId {\n    if (peoplePicker.numberOfSelectedPeople == ZLNumSelectionNone) {\n        if (self.selectionActionSegmentedControl.selectedSegmentIndex ==\n            DemoTableViewControllerSectionSelectionActionTypePersonViewController) {\n            [self showPersonViewController:[recordId intValue]\n                    onNavigationController:peoplePicker.navigationController];\n        } else {\n            [peoplePicker\n                presentViewController:\n                    [self alertControllerWithTitle:@\"You have selected:\"\n                                           Message:[self firstNameForPerson:\n                                                             recordId]]\n                             animated:YES\n                           completion:nil];\n        }\n    }\n}\n- (void)peoplePickerViewController:(ZLPeoplePickerViewController *)peoplePicker\n       didReturnWithSelectedPeople:(NSArray *)people {\n    if (!people || people.count == 0) {\n        return;\n    }\n\n    if (self.returnActionSegmentedControl.selectedSegmentIndex ==\n        DemoTableViewControllerSectionReturnActionTypeEmail) {\n        NSArray *toRecipients = [self emailsForPeople:people];\n        [self showMailPicker:toRecipients];\n    } else {\n        [self\n            presentViewController:\n                [self alertControllerWithTitle:@\"Return with selected people:\"\n                                       Message:\n                                           [[self firstNameForPeople:people]\n                                               componentsJoinedByString:@\", \"]]\n                         animated:YES\n                       completion:nil];\n    }\n}\n- (void)newPersonViewControllerDidCompleteWithNewPerson:\n        (nullable ABRecordRef)person {\n    NSLog(@\"Added a new person\");\n}\n#pragma mark - Table view data source\n\n- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView {\n    return DemoTableViewControllerSectionCount;\n}\n\n- (NSInteger)tableView:(UITableView *)tableView\n    numberOfRowsInSection:(NSInteger)section {\n    if (section == DemoTableViewControllerSectionNumSelectionType) {\n        return DemoTableViewControllerSectionNumSelectionTypeRowCount;\n    }\n    if (section == DemoTableViewControllerSectionActionType) {\n        return DemoTableViewControllerSectionActionTypeRowCount;\n    }\n    if (section == DemoTableViewControllerSectionFieldMaskType) {\n        return DemoTableViewControllerSectionFieldMaskRowCount;\n    }\n    return 1;\n}\n\n- (UITableViewCell *)tableView:(UITableView *)tableView\n         cellForRowAtIndexPath:(NSIndexPath *)indexPath {\n    NSString *cellIdentifier =\n        [NSString stringWithFormat:@\"s%li-r%li\", (long)indexPath.section,\n                                   (long)indexPath.row];\n    UITableViewCell *cell =\n        [tableView dequeueReusableCellWithIdentifier:cellIdentifier];\n    if (!cell) {\n        cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleValue1\n                                      reuseIdentifier:cellIdentifier];\n    }\n\n    cell.selectionStyle = UITableViewCellSelectionStyleNone;\n\n    switch (indexPath.section) {\n    case DemoTableViewControllerSectionPresentationType: {\n        cell.textLabel.text = @\"Segue Type\";\n        UISegmentedControl *control =\n            [[UISegmentedControl alloc] initWithItems:@[ @\"Push\", @\"Modal\" ]];\n        control.autoresizingMask = UIViewAutoresizingFlexibleWidth;\n        control.selectedSegmentIndex = 0;\n        cell.accessoryView = control;\n        self.presentationSegmentedControl = control;\n    } break;\n    case DemoTableViewControllerSectionNumSelectionType: {\n        switch (indexPath.row) {\n        case DemoTableViewControllerSectionNumSelectionTypeRowSegmentedControl: {\n            cell.textLabel.text = @\"NumSelectedPeople\";\n            UISegmentedControl *control = [[UISegmentedControl alloc]\n                initWithItems:@[ @\"None\", @\"Max\", @\"Custom\" ]];\n            control.selectedSegmentIndex = 0;\n            cell.accessoryView = control;\n            [control addTarget:self\n                          action:@selector(numSelectionSegmentedControlAction:)\n                forControlEvents:UIControlEventValueChanged];\n            self.numSelectionSegmentedControl = control;\n        } break;\n        case DemoTableViewControllerSectionNumSelectionTypeRowSlider: {\n            cell.textLabel.text = [self customNumSelectionTypeDescription];\n            self.numSelectionLabel = cell.textLabel;\n            UISlider *control = [[UISlider alloc] init];\n            control.autoresizingMask = UIViewAutoresizingFlexibleWidth;\n            cell.accessoryView = control;\n            [control addTarget:self\n                          action:@selector(numSelectionSliderAction:)\n                forControlEvents:UIControlEventValueChanged];\n            self.numSelectionSlider = control;\n        }\n        default:\n            break;\n        }\n\n    } break;\n    case DemoTableViewControllerSectionFieldMaskType: {\n        switch (indexPath.row) {\n            case DemoTableViewControllerSectionFieldMaskTypesRow: {\n                cell.textLabel.text = @\"FieldMask\";\n                UISegmentedControl *control = [[UISegmentedControl alloc]\n                                               initWithItems:@[ @\"All\", @\"Phones\", @\"Emails\", @\"Photo\" ]];\n                control.autoresizingMask = UIViewAutoresizingFlexibleWidth;\n                control.selectedSegmentIndex = 0;\n                cell.accessoryView = control;\n                self.fieldMaskSegmentedControl = control;\n            } break;\n            case DemoTableViewControllerSectionFieldMaskFilterRow: {\n                cell.textLabel.text = @\"FieldMask Filter\";\n                UISwitch *filterSwitch = [[UISwitch alloc] initWithFrame:CGRectZero];\n                filterSwitch.autoresizingMask = UIViewAutoresizingFlexibleWidth;\n                filterSwitch.on = NO;\n                cell.accessoryView = filterSwitch;\n                [filterSwitch sizeToFit];\n\n                self.fieldMaskFilterSwitch = filterSwitch;\n            } break;\n            default:\n                break;\n        }\n    } break;\n    case DemoTableViewControllerSectionActionType: {\n        switch (indexPath.row) {\n        case DemoTableViewControllerSectionActionTypeRowSelection: {\n            cell.textLabel.text = @\"DidSelectAction\";\n            UISegmentedControl *control = [[UISegmentedControl alloc]\n                initWithItems:@[ @\"PersonVC\", @\"Alert\" ]];\n            control.selectedSegmentIndex = 0;\n            control.autoresizingMask = UIViewAutoresizingFlexibleWidth;\n            cell.accessoryView = control;\n            self.selectionActionSegmentedControl = control;\n        } break;\n        case DemoTableViewControllerSectionActionTypeRowReturn: {\n            cell.textLabel.text = @\"DidReturnAction\";\n            UISegmentedControl *control = [[UISegmentedControl alloc]\n                initWithItems:@[ @\"Send Emails\", @\"Alert\" ]];\n            control.selectedSegmentIndex = 0;\n            control.autoresizingMask = UIViewAutoresizingFlexibleWidth;\n            cell.accessoryView = control;\n            self.returnActionSegmentedControl = control;\n        }\n        default:\n            break;\n        }\n\n    } break;\n    case DemoTableViewControllerSectionShowButton:\n        cell.selectionStyle = UITableViewCellSelectionStyleGray;\n        cell.textLabel.text = @\"Show People Picker\";\n        cell.textLabel.textColor = self.view.tintColor;\n        break;\n    default:\n        break;\n    }\n    return cell;\n}\n\n- (void)tableView:(UITableView *)tableView\n    didSelectRowAtIndexPath:(NSIndexPath *)indexPath {\n    [tableView deselectRowAtIndexPath:indexPath animated:YES];\n    if (indexPath.section != DemoTableViewControllerSectionShowButton) {\n        return;\n    }\n\n    if (self.presentationSegmentedControl.selectedSegmentIndex ==\n        DemoTableViewControllerSectionPresentationTypeNormal) {\n        self.peoplePicker = [[ZLPeoplePickerViewController alloc] init];\n        self.peoplePicker.delegate = self;\n        [self.navigationController pushViewController:self.peoplePicker\n                                             animated:YES];\n    } else {\n        self.peoplePicker = [ZLPeoplePickerViewController\n            presentPeoplePickerViewControllerForParentViewController:self];\n    }\n\n    if (self.fieldMaskSegmentedControl.selectedSegmentIndex ==\n        DemoTableViewControllerSectionFieldMaskTypeAll) {\n        self.peoplePicker.fieldMask = ZLContactFieldAll;\n    } else if (self.fieldMaskSegmentedControl.selectedSegmentIndex ==\n        DemoTableViewControllerSectionFieldMaskTypePhones) {\n        self.peoplePicker.fieldMask = ZLContactFieldPhones;\n    } else if (self.fieldMaskSegmentedControl.selectedSegmentIndex ==\n               DemoTableViewControllerSectionFieldMaskTypeEmails) {\n        self.peoplePicker.fieldMask = ZLContactFieldEmails;\n    } else {\n        self.peoplePicker.fieldMask = ZLContactFieldPhoto;\n    }\n\n    if (self.numSelectionSegmentedControl.selectedSegmentIndex ==\n        DemoTableViewControllerSectionNumSelectionTypeNone) {\n        self.peoplePicker.numberOfSelectedPeople = ZLNumSelectionNone;\n    } else if (self.numSelectionSegmentedControl.selectedSegmentIndex ==\n               DemoTableViewControllerSectionNumSelectionTypeMax) {\n        self.peoplePicker.numberOfSelectedPeople = ZLNumSelectionMax;\n    } else {\n        self.peoplePicker.numberOfSelectedPeople =\n            [self customNumSelectionType];\n    }\n\n    self.peoplePicker.shouldHideUnmaskedContacts = self.fieldMaskFilterSwitch.on;\n}\n\n#pragma mark Display and edit a person\n- (void)showPersonViewController:(ABRecordID)recordId\n          onNavigationController:\n              (UINavigationController *)navigationController {\n    ABRecordRef person = (ABRecordRef)(\n        ABAddressBookGetPersonWithRecordID(self.addressBookRef, recordId));\n\n    if (person != NULL) {\n        ABPersonViewController *picker = [[ABPersonViewController alloc] init];\n        picker.personViewDelegate = self;\n        picker.displayedPerson = person;\n        // Allow users to edit the person’s information\n        picker.allowsEditing = YES;\n        picker.allowsActions = NO;\n        picker.shouldShowLinkedPeople = YES;\n        [navigationController pushViewController:picker animated:YES];\n    } else {\n        // Show an alert if \"Appleseed\" is not in Contacts\n        UIAlertView *alert =\n            [[UIAlertView alloc] initWithTitle:@\"Error\"\n                                       message:@\"Could not find the person in \"\n                                       @\"the Contacts application\"\n                                      delegate:nil\n                             cancelButtonTitle:@\"Cancel\"\n                             otherButtonTitles:nil];\n        [alert show];\n    }\n}\n\n#pragma mark ABPersonViewControllerDelegate methods\n// Does not allow users to perform default actions such as dialing a phone\n// number, when they select a contact property.\n- (BOOL)personViewController:(ABPersonViewController *)personViewController\n    shouldPerformDefaultActionForPerson:(ABRecordRef)person\n                               property:(ABPropertyID)property\n                             identifier:\n                                 (ABMultiValueIdentifier)identifierForValue {\n    return NO;\n}\n\n#pragma mark - Compose Mail/SMS\n- (void)displayMailComposerSheet:(NSArray *)recipients {\n    MFMailComposeViewController *picker =\n        [[MFMailComposeViewController alloc] init];\n    picker.mailComposeDelegate = self;\n    [picker setToRecipients:recipients];\n    [picker setSubject:@\"Check Out ZLPeoplePickerViewController!\"];\n    NSString *emailBody = @\"Check Out ZLPeoplePickerViewController at \"\n        @\"https://github.com/zhxnlai/\" @\"ZLPeoplePickerViewController\";\n    [picker setMessageBody:emailBody isHTML:NO];\n\n    [self presentViewController:picker animated:YES completion:NULL];\n}\n\n- (void)showMailPicker:(NSArray *)recipients {\n    // You must check that the current device can send email messages before you\n    // attempt to create an instance of MFMailComposeViewController.  If the\n    // device can not send email messages,\n    // [[MFMailComposeViewController alloc] init] will return nil.  Your app\n    // will crash when it calls -presentViewController:animated:completion: with\n    // a nil view controller.\n    if ([MFMailComposeViewController canSendMail])\n    // The device can send email.\n    {\n        [self displayMailComposerSheet:recipients];\n    } else\n    // The device can not send email.\n    {\n        UIAlertView *alert = [[UIAlertView alloc]\n                initWithTitle:@\"Cannot send text\"\n                      message:@\"Device not configured to send email.\"\n                     delegate:self\n            cancelButtonTitle:@\"OK\"\n            otherButtonTitles:nil];\n        [alert show];\n    }\n}\n\n- (void)mailComposeController:(MFMailComposeViewController *)controller\n          didFinishWithResult:(MFMailComposeResult)result\n                        error:(NSError *)error {\n    // Notifies users about errors associated with the interface\n    switch (result) {\n    case MFMailComposeResultCancelled:\n        break;\n    case MFMailComposeResultSaved:\n        break;\n    case MFMailComposeResultSent:\n        break;\n    case MFMailComposeResultFailed:\n        break;\n    default:\n        //            self.feedbackMsg.text = @\"Result: Mail not sent\";\n        break;\n    }\n\n    [self dismissViewControllerAnimated:YES completion:NULL];\n}\n\n#pragma mark - ()\n- (NSString *)customNumSelectionTypeDescription {\n    return [NSString stringWithFormat:@\"Custom: %lu Selected People\",\n                                      [self customNumSelectionType]];\n}\n- (ZLNumSelection)customNumSelectionType {\n    return self.numSelectionSlider.value * numSelectionSliderMaxValue;\n}\n- (UIAlertController *)alertControllerWithTitle:(NSString *)title\n                                        Message:(NSString *)message {\n    UIAlertController *alert = [UIAlertController\n        alertControllerWithTitle:title\n                         message:message\n                  preferredStyle:UIAlertControllerStyleAlert];\n    UIAlertAction *ok = [UIAlertAction\n        actionWithTitle:@\"OK\"\n                  style:UIAlertActionStyleDefault\n                handler:^(UIAlertAction *action) {\n                  [alert dismissViewControllerAnimated:YES completion:nil];\n                }];\n    [alert addAction:ok];\n    return alert;\n}\n- (NSArray *)emailsForPeople:(NSArray *)recordIds {\n    NSMutableArray *emails = [NSMutableArray array];\n    for (NSNumber *recordId in recordIds) {\n        [emails addObjectsFromArray:[self emailsForPerson:recordId]];\n    }\n    return emails;\n}\n- (NSArray *)emailsForPerson:(NSNumber *)recordId {\n    return [self arrayProperty:kABPersonEmailProperty\n                    fromRecord:[self recordRefFromRecordId:recordId]];\n}\n- (NSArray *)firstNameForPeople:(NSArray *)recordIds {\n    NSMutableArray *firstNames = [NSMutableArray array];\n    for (NSNumber *recordId in recordIds) {\n        NSString *firstName = [self firstNameForPerson:recordId];\n        if (firstName) {\n            [firstNames addObject:firstName];\n        }\n    }\n    return firstNames;\n}\n- (NSString *)firstNameForPerson:(NSNumber *)recordId {\n    NSString *firstName = (__bridge_transfer NSString *)ABRecordCopyValue(\n        [self recordRefFromRecordId:recordId], kABPersonFirstNameProperty);\n    return firstName;\n}\n- (ABRecordRef)recordRefFromRecordId:(NSNumber *)recordId {\n    return ABAddressBookGetPersonWithRecordID(self.addressBookRef,\n                                              [recordId intValue]);\n}\n- (NSArray *)arrayProperty:(ABPropertyID)property\n                fromRecord:(ABRecordRef)recordRef {\n    NSMutableArray *array = [[NSMutableArray alloc] init];\n    [self enumerateMultiValueOfProperty:property\n                             fromRecord:recordRef\n                              withBlock:^(ABMultiValueRef multiValue,\n                                          NSUInteger index) {\n                                CFTypeRef value = ABMultiValueCopyValueAtIndex(\n                                    multiValue, index);\n                                NSString *string =\n                                    (__bridge_transfer NSString *)value;\n                                if (string) {\n                                    [array addObject:string];\n                                }\n                              }];\n    return array.copy;\n}\n- (void)enumerateMultiValueOfProperty:(ABPropertyID)property\n                           fromRecord:(ABRecordRef)recordRef\n                            withBlock:(void (^)(ABMultiValueRef multiValue,\n                                                NSUInteger index))block {\n    ABMultiValueRef multiValue = ABRecordCopyValue(recordRef, property);\n    NSUInteger count = (NSUInteger)ABMultiValueGetCount(multiValue);\n    for (NSUInteger i = 0; i < count; i++) {\n        block(multiValue, i);\n    }\n    CFRelease(multiValue);\n}\n\n@end\n"
  },
  {
    "path": "ZLPeoplePickerViewControllerDemo/ZLPeoplePickerViewControllerDemo/Images.xcassets/AppIcon.appiconset/Contents.json",
    "content": "{\n  \"images\" : [\n    {\n      \"idiom\" : \"iphone\",\n      \"size\" : \"29x29\",\n      \"scale\" : \"2x\"\n    },\n    {\n      \"idiom\" : \"iphone\",\n      \"size\" : \"29x29\",\n      \"scale\" : \"3x\"\n    },\n    {\n      \"idiom\" : \"iphone\",\n      \"size\" : \"40x40\",\n      \"scale\" : \"2x\"\n    },\n    {\n      \"idiom\" : \"iphone\",\n      \"size\" : \"40x40\",\n      \"scale\" : \"3x\"\n    },\n    {\n      \"idiom\" : \"iphone\",\n      \"size\" : \"60x60\",\n      \"scale\" : \"2x\"\n    },\n    {\n      \"idiom\" : \"iphone\",\n      \"size\" : \"60x60\",\n      \"scale\" : \"3x\"\n    }\n  ],\n  \"info\" : {\n    \"version\" : 1,\n    \"author\" : \"xcode\"\n  }\n}"
  },
  {
    "path": "ZLPeoplePickerViewControllerDemo/ZLPeoplePickerViewControllerDemo/Info.plist",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/PropertyList-1.0.dtd\">\n<plist version=\"1.0\">\n<dict>\n\t<key>CFBundleDevelopmentRegion</key>\n\t<string>en</string>\n\t<key>CFBundleExecutable</key>\n\t<string>$(EXECUTABLE_NAME)</string>\n\t<key>CFBundleIdentifier</key>\n\t<string>com.axcel.$(PRODUCT_NAME:rfc1034identifier)</string>\n\t<key>CFBundleInfoDictionaryVersion</key>\n\t<string>6.0</string>\n\t<key>CFBundleName</key>\n\t<string>$(PRODUCT_NAME)</string>\n\t<key>CFBundlePackageType</key>\n\t<string>APPL</string>\n\t<key>CFBundleShortVersionString</key>\n\t<string>1.0</string>\n\t<key>CFBundleSignature</key>\n\t<string>????</string>\n\t<key>CFBundleVersion</key>\n\t<string>1</string>\n\t<key>LSRequiresIPhoneOS</key>\n\t<true/>\n\t<key>UILaunchStoryboardName</key>\n\t<string>LaunchScreen</string>\n\t<key>UIRequiredDeviceCapabilities</key>\n\t<array>\n\t\t<string>armv7</string>\n\t</array>\n\t<key>UISupportedInterfaceOrientations</key>\n\t<array>\n\t\t<string>UIInterfaceOrientationPortrait</string>\n\t\t<string>UIInterfaceOrientationLandscapeLeft</string>\n\t\t<string>UIInterfaceOrientationLandscapeRight</string>\n\t</array>\n</dict>\n</plist>\n"
  },
  {
    "path": "ZLPeoplePickerViewControllerDemo/ZLPeoplePickerViewControllerDemo/main.m",
    "content": "//\n//  main.m\n//  ZLPeoplePickerViewControllerDemo\n//\n//  Created by Zhixuan Lai on 11/4/14.\n//  Copyright (c) 2014 Zhixuan Lai. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n#import \"AppDelegate.h\"\n\nint main(int argc, char * argv[]) {\n    @autoreleasepool {\n        return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));\n    }\n}\n"
  },
  {
    "path": "ZLPeoplePickerViewControllerDemo/ZLPeoplePickerViewControllerDemo.xcodeproj/project.pbxproj",
    "content": "// !$*UTF8*$!\n{\n\tarchiveVersion = 1;\n\tclasses = {\n\t};\n\tobjectVersion = 46;\n\tobjects = {\n\n/* Begin PBXBuildFile section */\n\t\t094FA06B1A0C39A700A19F44 /* DemoTableViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 094FA06A1A0C39A700A19F44 /* DemoTableViewController.m */; };\n\t\t0971D4A61A09B01600325B8D /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 0971D4A51A09B01600325B8D /* main.m */; };\n\t\t0971D4A91A09B01600325B8D /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 0971D4A81A09B01600325B8D /* AppDelegate.m */; };\n\t\t0971D4B11A09B01600325B8D /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 0971D4B01A09B01600325B8D /* Images.xcassets */; };\n\t\t0971D4B41A09B01600325B8D /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = 0971D4B21A09B01600325B8D /* LaunchScreen.xib */; };\n\t\t0971D4C01A09B01600325B8D /* ZLPeoplePickerViewControllerDemoTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 0971D4BF1A09B01600325B8D /* ZLPeoplePickerViewControllerDemoTests.m */; };\n\t\t09AF0ADB1A1180EA007805AE /* APContact+Sorting.m in Sources */ = {isa = PBXBuildFile; fileRef = 09AF0AD01A1180EA007805AE /* APContact+Sorting.m */; };\n\t\t09AF0ADC1A1180EA007805AE /* LRIndexedCollationWithSearch.m in Sources */ = {isa = PBXBuildFile; fileRef = 09AF0AD21A1180EA007805AE /* LRIndexedCollationWithSearch.m */; };\n\t\t09AF0ADD1A1180EA007805AE /* ZLBaseTableViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 09AF0AD41A1180EA007805AE /* ZLBaseTableViewController.m */; };\n\t\t09AF0ADE1A1180EA007805AE /* ZLResultsTableViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 09AF0AD61A1180EA007805AE /* ZLResultsTableViewController.m */; };\n\t\t09AF0AE01A1180EA007805AE /* ZLPeoplePickerViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 09AF0ADA1A1180EA007805AE /* ZLPeoplePickerViewController.m */; };\n\t\t09AF0AE71A12C1ED007805AE /* ZLAddressBook.m in Sources */ = {isa = PBXBuildFile; fileRef = 09AF0AE61A12C1ED007805AE /* ZLAddressBook.m */; };\n\t\t9368C6EAA371E3ACDA194FB1 /* libPods-ZLPeoplePickerViewControllerDemo.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 7A4FCD87F625E561E254D054 /* libPods-ZLPeoplePickerViewControllerDemo.a */; };\n/* End PBXBuildFile section */\n\n/* Begin PBXContainerItemProxy section */\n\t\t0971D4BA1A09B01600325B8D /* PBXContainerItemProxy */ = {\n\t\t\tisa = PBXContainerItemProxy;\n\t\t\tcontainerPortal = 0971D4981A09B01600325B8D /* Project object */;\n\t\t\tproxyType = 1;\n\t\t\tremoteGlobalIDString = 0971D49F1A09B01600325B8D;\n\t\t\tremoteInfo = ZLPeoplePickerViewControllerDemo;\n\t\t};\n/* End PBXContainerItemProxy section */\n\n/* Begin PBXFileReference section */\n\t\t094FA0691A0C39A700A19F44 /* DemoTableViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = DemoTableViewController.h; sourceTree = \"<group>\"; };\n\t\t094FA06A1A0C39A700A19F44 /* DemoTableViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = DemoTableViewController.m; sourceTree = \"<group>\"; };\n\t\t0971D4A01A09B01600325B8D /* ZLPeoplePickerViewControllerDemo.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = ZLPeoplePickerViewControllerDemo.app; sourceTree = BUILT_PRODUCTS_DIR; };\n\t\t0971D4A41A09B01600325B8D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = \"<group>\"; };\n\t\t0971D4A51A09B01600325B8D /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = \"<group>\"; };\n\t\t0971D4A71A09B01600325B8D /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = \"<group>\"; };\n\t\t0971D4A81A09B01600325B8D /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = \"<group>\"; };\n\t\t0971D4B01A09B01600325B8D /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = \"<group>\"; };\n\t\t0971D4B31A09B01600325B8D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/LaunchScreen.xib; sourceTree = \"<group>\"; };\n\t\t0971D4B91A09B01600325B8D /* ZLPeoplePickerViewControllerDemoTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = ZLPeoplePickerViewControllerDemoTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };\n\t\t0971D4BE1A09B01600325B8D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = \"<group>\"; };\n\t\t0971D4BF1A09B01600325B8D /* ZLPeoplePickerViewControllerDemoTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ZLPeoplePickerViewControllerDemoTests.m; sourceTree = \"<group>\"; };\n\t\t09AF0ACF1A1180EA007805AE /* APContact+Sorting.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = \"APContact+Sorting.h\"; sourceTree = \"<group>\"; };\n\t\t09AF0AD01A1180EA007805AE /* APContact+Sorting.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = \"APContact+Sorting.m\"; sourceTree = \"<group>\"; };\n\t\t09AF0AD11A1180EA007805AE /* LRIndexedCollationWithSearch.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = LRIndexedCollationWithSearch.h; sourceTree = \"<group>\"; };\n\t\t09AF0AD21A1180EA007805AE /* LRIndexedCollationWithSearch.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = LRIndexedCollationWithSearch.m; sourceTree = \"<group>\"; };\n\t\t09AF0AD31A1180EA007805AE /* ZLBaseTableViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ZLBaseTableViewController.h; sourceTree = \"<group>\"; };\n\t\t09AF0AD41A1180EA007805AE /* ZLBaseTableViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ZLBaseTableViewController.m; sourceTree = \"<group>\"; };\n\t\t09AF0AD51A1180EA007805AE /* ZLResultsTableViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ZLResultsTableViewController.h; sourceTree = \"<group>\"; };\n\t\t09AF0AD61A1180EA007805AE /* ZLResultsTableViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ZLResultsTableViewController.m; sourceTree = \"<group>\"; };\n\t\t09AF0AD91A1180EA007805AE /* ZLPeoplePickerViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ZLPeoplePickerViewController.h; sourceTree = \"<group>\"; };\n\t\t09AF0ADA1A1180EA007805AE /* ZLPeoplePickerViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ZLPeoplePickerViewController.m; sourceTree = \"<group>\"; };\n\t\t09AF0AE41A12909C007805AE /* ZLTypes.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ZLTypes.h; sourceTree = \"<group>\"; };\n\t\t09AF0AE51A12C1ED007805AE /* ZLAddressBook.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ZLAddressBook.h; sourceTree = \"<group>\"; };\n\t\t09AF0AE61A12C1ED007805AE /* ZLAddressBook.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ZLAddressBook.m; sourceTree = \"<group>\"; };\n\t\t16F05380A033F1C8963BECC2 /* Pods-ZLPeoplePickerViewControllerDemo.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = \"Pods-ZLPeoplePickerViewControllerDemo.release.xcconfig\"; path = \"Pods/Target Support Files/Pods-ZLPeoplePickerViewControllerDemo/Pods-ZLPeoplePickerViewControllerDemo.release.xcconfig\"; sourceTree = \"<group>\"; };\n\t\t7A4FCD87F625E561E254D054 /* libPods-ZLPeoplePickerViewControllerDemo.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = \"libPods-ZLPeoplePickerViewControllerDemo.a\"; sourceTree = BUILT_PRODUCTS_DIR; };\n\t\t7E9F2DD6A233D1682F81CCD3 /* Pods-ZLPeoplePickerViewControllerDemo.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = \"Pods-ZLPeoplePickerViewControllerDemo.debug.xcconfig\"; path = \"Pods/Target Support Files/Pods-ZLPeoplePickerViewControllerDemo/Pods-ZLPeoplePickerViewControllerDemo.debug.xcconfig\"; sourceTree = \"<group>\"; };\n/* End PBXFileReference section */\n\n/* Begin PBXFrameworksBuildPhase section */\n\t\t0971D49D1A09B01600325B8D /* Frameworks */ = {\n\t\t\tisa = PBXFrameworksBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tfiles = (\n\t\t\t\t9368C6EAA371E3ACDA194FB1 /* libPods-ZLPeoplePickerViewControllerDemo.a in Frameworks */,\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t};\n\t\t0971D4B61A09B01600325B8D /* Frameworks */ = {\n\t\t\tisa = PBXFrameworksBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tfiles = (\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t};\n/* End PBXFrameworksBuildPhase section */\n\n/* Begin PBXGroup section */\n\t\t0971D4971A09B01600325B8D = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\t0971D4A21A09B01600325B8D /* ZLPeoplePickerViewControllerDemo */,\n\t\t\t\t0971D4BC1A09B01600325B8D /* ZLPeoplePickerViewControllerDemoTests */,\n\t\t\t\t0971D4A11A09B01600325B8D /* Products */,\n\t\t\t\t0D4B11041DA95E11C15BBB66 /* Pods */,\n\t\t\t\t57998266035A2B62A632C1FA /* Frameworks */,\n\t\t\t);\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\t0971D4A11A09B01600325B8D /* Products */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\t0971D4A01A09B01600325B8D /* ZLPeoplePickerViewControllerDemo.app */,\n\t\t\t\t0971D4B91A09B01600325B8D /* ZLPeoplePickerViewControllerDemoTests.xctest */,\n\t\t\t);\n\t\t\tname = Products;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\t0971D4A21A09B01600325B8D /* ZLPeoplePickerViewControllerDemo */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\t09AF0ACD1A1180EA007805AE /* ZLPeoplePickerViewController */,\n\t\t\t\t0971D4A71A09B01600325B8D /* AppDelegate.h */,\n\t\t\t\t0971D4A81A09B01600325B8D /* AppDelegate.m */,\n\t\t\t\t094FA0691A0C39A700A19F44 /* DemoTableViewController.h */,\n\t\t\t\t094FA06A1A0C39A700A19F44 /* DemoTableViewController.m */,\n\t\t\t\t0971D4B01A09B01600325B8D /* Images.xcassets */,\n\t\t\t\t0971D4B21A09B01600325B8D /* LaunchScreen.xib */,\n\t\t\t\t0971D4A31A09B01600325B8D /* Supporting Files */,\n\t\t\t);\n\t\t\tpath = ZLPeoplePickerViewControllerDemo;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\t0971D4A31A09B01600325B8D /* Supporting Files */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\t0971D4A41A09B01600325B8D /* Info.plist */,\n\t\t\t\t0971D4A51A09B01600325B8D /* main.m */,\n\t\t\t);\n\t\t\tname = \"Supporting Files\";\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\t0971D4BC1A09B01600325B8D /* ZLPeoplePickerViewControllerDemoTests */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\t0971D4BF1A09B01600325B8D /* ZLPeoplePickerViewControllerDemoTests.m */,\n\t\t\t\t0971D4BD1A09B01600325B8D /* Supporting Files */,\n\t\t\t);\n\t\t\tpath = ZLPeoplePickerViewControllerDemoTests;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\t0971D4BD1A09B01600325B8D /* Supporting Files */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\t0971D4BE1A09B01600325B8D /* Info.plist */,\n\t\t\t);\n\t\t\tname = \"Supporting Files\";\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\t09AF0ACD1A1180EA007805AE /* ZLPeoplePickerViewController */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\t09AF0ACE1A1180EA007805AE /* Internal */,\n\t\t\t\t09AF0AD91A1180EA007805AE /* ZLPeoplePickerViewController.h */,\n\t\t\t\t09AF0ADA1A1180EA007805AE /* ZLPeoplePickerViewController.m */,\n\t\t\t);\n\t\t\tname = ZLPeoplePickerViewController;\n\t\t\tpath = ../../ZLPeoplePickerViewController;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\t09AF0ACE1A1180EA007805AE /* Internal */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\t09AF0ACF1A1180EA007805AE /* APContact+Sorting.h */,\n\t\t\t\t09AF0AD01A1180EA007805AE /* APContact+Sorting.m */,\n\t\t\t\t09AF0AD11A1180EA007805AE /* LRIndexedCollationWithSearch.h */,\n\t\t\t\t09AF0AD21A1180EA007805AE /* LRIndexedCollationWithSearch.m */,\n\t\t\t\t09AF0AD31A1180EA007805AE /* ZLBaseTableViewController.h */,\n\t\t\t\t09AF0AD41A1180EA007805AE /* ZLBaseTableViewController.m */,\n\t\t\t\t09AF0AD51A1180EA007805AE /* ZLResultsTableViewController.h */,\n\t\t\t\t09AF0AD61A1180EA007805AE /* ZLResultsTableViewController.m */,\n\t\t\t\t09AF0AE51A12C1ED007805AE /* ZLAddressBook.h */,\n\t\t\t\t09AF0AE61A12C1ED007805AE /* ZLAddressBook.m */,\n\t\t\t\t09AF0AE41A12909C007805AE /* ZLTypes.h */,\n\t\t\t);\n\t\t\tpath = Internal;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\t0D4B11041DA95E11C15BBB66 /* Pods */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\t7E9F2DD6A233D1682F81CCD3 /* Pods-ZLPeoplePickerViewControllerDemo.debug.xcconfig */,\n\t\t\t\t16F05380A033F1C8963BECC2 /* Pods-ZLPeoplePickerViewControllerDemo.release.xcconfig */,\n\t\t\t);\n\t\t\tname = Pods;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\t57998266035A2B62A632C1FA /* Frameworks */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\t7A4FCD87F625E561E254D054 /* libPods-ZLPeoplePickerViewControllerDemo.a */,\n\t\t\t);\n\t\t\tname = Frameworks;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n/* End PBXGroup section */\n\n/* Begin PBXNativeTarget section */\n\t\t0971D49F1A09B01600325B8D /* ZLPeoplePickerViewControllerDemo */ = {\n\t\t\tisa = PBXNativeTarget;\n\t\t\tbuildConfigurationList = 0971D4C31A09B01600325B8D /* Build configuration list for PBXNativeTarget \"ZLPeoplePickerViewControllerDemo\" */;\n\t\t\tbuildPhases = (\n\t\t\t\t2257FE0DB79C9D49CB87EA04 /* Check Pods Manifest.lock */,\n\t\t\t\t0971D49C1A09B01600325B8D /* Sources */,\n\t\t\t\t0971D49D1A09B01600325B8D /* Frameworks */,\n\t\t\t\t0971D49E1A09B01600325B8D /* Resources */,\n\t\t\t\t84C8CBA57F703DD894BE91D4 /* Copy Pods Resources */,\n\t\t\t\t974FE72DFFC308BD5D190419 /* Embed Pods Frameworks */,\n\t\t\t);\n\t\t\tbuildRules = (\n\t\t\t);\n\t\t\tdependencies = (\n\t\t\t);\n\t\t\tname = ZLPeoplePickerViewControllerDemo;\n\t\t\tproductName = ZLPeoplePickerViewControllerDemo;\n\t\t\tproductReference = 0971D4A01A09B01600325B8D /* ZLPeoplePickerViewControllerDemo.app */;\n\t\t\tproductType = \"com.apple.product-type.application\";\n\t\t};\n\t\t0971D4B81A09B01600325B8D /* ZLPeoplePickerViewControllerDemoTests */ = {\n\t\t\tisa = PBXNativeTarget;\n\t\t\tbuildConfigurationList = 0971D4C61A09B01600325B8D /* Build configuration list for PBXNativeTarget \"ZLPeoplePickerViewControllerDemoTests\" */;\n\t\t\tbuildPhases = (\n\t\t\t\t0971D4B51A09B01600325B8D /* Sources */,\n\t\t\t\t0971D4B61A09B01600325B8D /* Frameworks */,\n\t\t\t\t0971D4B71A09B01600325B8D /* Resources */,\n\t\t\t);\n\t\t\tbuildRules = (\n\t\t\t);\n\t\t\tdependencies = (\n\t\t\t\t0971D4BB1A09B01600325B8D /* PBXTargetDependency */,\n\t\t\t);\n\t\t\tname = ZLPeoplePickerViewControllerDemoTests;\n\t\t\tproductName = ZLPeoplePickerViewControllerDemoTests;\n\t\t\tproductReference = 0971D4B91A09B01600325B8D /* ZLPeoplePickerViewControllerDemoTests.xctest */;\n\t\t\tproductType = \"com.apple.product-type.bundle.unit-test\";\n\t\t};\n/* End PBXNativeTarget section */\n\n/* Begin PBXProject section */\n\t\t0971D4981A09B01600325B8D /* Project object */ = {\n\t\t\tisa = PBXProject;\n\t\t\tattributes = {\n\t\t\t\tLastUpgradeCheck = 0610;\n\t\t\t\tORGANIZATIONNAME = \"Zhixuan Lai\";\n\t\t\t\tTargetAttributes = {\n\t\t\t\t\t0971D49F1A09B01600325B8D = {\n\t\t\t\t\t\tCreatedOnToolsVersion = 6.1;\n\t\t\t\t\t};\n\t\t\t\t\t0971D4B81A09B01600325B8D = {\n\t\t\t\t\t\tCreatedOnToolsVersion = 6.1;\n\t\t\t\t\t\tTestTargetID = 0971D49F1A09B01600325B8D;\n\t\t\t\t\t};\n\t\t\t\t};\n\t\t\t};\n\t\t\tbuildConfigurationList = 0971D49B1A09B01600325B8D /* Build configuration list for PBXProject \"ZLPeoplePickerViewControllerDemo\" */;\n\t\t\tcompatibilityVersion = \"Xcode 3.2\";\n\t\t\tdevelopmentRegion = English;\n\t\t\thasScannedForEncodings = 0;\n\t\t\tknownRegions = (\n\t\t\t\ten,\n\t\t\t\tBase,\n\t\t\t);\n\t\t\tmainGroup = 0971D4971A09B01600325B8D;\n\t\t\tproductRefGroup = 0971D4A11A09B01600325B8D /* Products */;\n\t\t\tprojectDirPath = \"\";\n\t\t\tprojectRoot = \"\";\n\t\t\ttargets = (\n\t\t\t\t0971D49F1A09B01600325B8D /* ZLPeoplePickerViewControllerDemo */,\n\t\t\t\t0971D4B81A09B01600325B8D /* ZLPeoplePickerViewControllerDemoTests */,\n\t\t\t);\n\t\t};\n/* End PBXProject section */\n\n/* Begin PBXResourcesBuildPhase section */\n\t\t0971D49E1A09B01600325B8D /* Resources */ = {\n\t\t\tisa = PBXResourcesBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tfiles = (\n\t\t\t\t0971D4B41A09B01600325B8D /* LaunchScreen.xib in Resources */,\n\t\t\t\t0971D4B11A09B01600325B8D /* Images.xcassets in Resources */,\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t};\n\t\t0971D4B71A09B01600325B8D /* Resources */ = {\n\t\t\tisa = PBXResourcesBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tfiles = (\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t};\n/* End PBXResourcesBuildPhase section */\n\n/* Begin PBXShellScriptBuildPhase section */\n\t\t2257FE0DB79C9D49CB87EA04 /* Check Pods Manifest.lock */ = {\n\t\t\tisa = PBXShellScriptBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tfiles = (\n\t\t\t);\n\t\t\tinputPaths = (\n\t\t\t);\n\t\t\tname = \"Check Pods Manifest.lock\";\n\t\t\toutputPaths = (\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t\tshellPath = /bin/sh;\n\t\t\tshellScript = \"diff \\\"${PODS_ROOT}/../Podfile.lock\\\" \\\"${PODS_ROOT}/Manifest.lock\\\" > /dev/null\\nif [[ $? != 0 ]] ; then\\n    cat << EOM\\nerror: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\\nEOM\\n    exit 1\\nfi\\n\";\n\t\t\tshowEnvVarsInLog = 0;\n\t\t};\n\t\t84C8CBA57F703DD894BE91D4 /* Copy Pods Resources */ = {\n\t\t\tisa = PBXShellScriptBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tfiles = (\n\t\t\t);\n\t\t\tinputPaths = (\n\t\t\t);\n\t\t\tname = \"Copy Pods Resources\";\n\t\t\toutputPaths = (\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t\tshellPath = /bin/sh;\n\t\t\tshellScript = \"\\\"${SRCROOT}/Pods/Target Support Files/Pods-ZLPeoplePickerViewControllerDemo/Pods-ZLPeoplePickerViewControllerDemo-resources.sh\\\"\\n\";\n\t\t\tshowEnvVarsInLog = 0;\n\t\t};\n\t\t974FE72DFFC308BD5D190419 /* Embed Pods Frameworks */ = {\n\t\t\tisa = PBXShellScriptBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tfiles = (\n\t\t\t);\n\t\t\tinputPaths = (\n\t\t\t);\n\t\t\tname = \"Embed Pods Frameworks\";\n\t\t\toutputPaths = (\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t\tshellPath = /bin/sh;\n\t\t\tshellScript = \"\\\"${SRCROOT}/Pods/Target Support Files/Pods-ZLPeoplePickerViewControllerDemo/Pods-ZLPeoplePickerViewControllerDemo-frameworks.sh\\\"\\n\";\n\t\t\tshowEnvVarsInLog = 0;\n\t\t};\n/* End PBXShellScriptBuildPhase section */\n\n/* Begin PBXSourcesBuildPhase section */\n\t\t0971D49C1A09B01600325B8D /* Sources */ = {\n\t\t\tisa = PBXSourcesBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tfiles = (\n\t\t\t\t09AF0ADD1A1180EA007805AE /* ZLBaseTableViewController.m in Sources */,\n\t\t\t\t09AF0ADE1A1180EA007805AE /* ZLResultsTableViewController.m in Sources */,\n\t\t\t\t09AF0ADB1A1180EA007805AE /* APContact+Sorting.m in Sources */,\n\t\t\t\t09AF0AE01A1180EA007805AE /* ZLPeoplePickerViewController.m in Sources */,\n\t\t\t\t0971D4A91A09B01600325B8D /* AppDelegate.m in Sources */,\n\t\t\t\t0971D4A61A09B01600325B8D /* main.m in Sources */,\n\t\t\t\t094FA06B1A0C39A700A19F44 /* DemoTableViewController.m in Sources */,\n\t\t\t\t09AF0ADC1A1180EA007805AE /* LRIndexedCollationWithSearch.m in Sources */,\n\t\t\t\t09AF0AE71A12C1ED007805AE /* ZLAddressBook.m in Sources */,\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t};\n\t\t0971D4B51A09B01600325B8D /* Sources */ = {\n\t\t\tisa = PBXSourcesBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tfiles = (\n\t\t\t\t0971D4C01A09B01600325B8D /* ZLPeoplePickerViewControllerDemoTests.m in Sources */,\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t};\n/* End PBXSourcesBuildPhase section */\n\n/* Begin PBXTargetDependency section */\n\t\t0971D4BB1A09B01600325B8D /* PBXTargetDependency */ = {\n\t\t\tisa = PBXTargetDependency;\n\t\t\ttarget = 0971D49F1A09B01600325B8D /* ZLPeoplePickerViewControllerDemo */;\n\t\t\ttargetProxy = 0971D4BA1A09B01600325B8D /* PBXContainerItemProxy */;\n\t\t};\n/* End PBXTargetDependency section */\n\n/* Begin PBXVariantGroup section */\n\t\t0971D4B21A09B01600325B8D /* LaunchScreen.xib */ = {\n\t\t\tisa = PBXVariantGroup;\n\t\t\tchildren = (\n\t\t\t\t0971D4B31A09B01600325B8D /* Base */,\n\t\t\t);\n\t\t\tname = LaunchScreen.xib;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n/* End PBXVariantGroup section */\n\n/* Begin XCBuildConfiguration section */\n\t\t0971D4C11A09B01600325B8D /* Debug */ = {\n\t\t\tisa = XCBuildConfiguration;\n\t\t\tbuildSettings = {\n\t\t\t\tALWAYS_SEARCH_USER_PATHS = NO;\n\t\t\t\tCLANG_CXX_LANGUAGE_STANDARD = \"gnu++0x\";\n\t\t\t\tCLANG_CXX_LIBRARY = \"libc++\";\n\t\t\t\tCLANG_ENABLE_MODULES = YES;\n\t\t\t\tCLANG_ENABLE_OBJC_ARC = YES;\n\t\t\t\tCLANG_WARN_BOOL_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_CONSTANT_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;\n\t\t\t\tCLANG_WARN_EMPTY_BODY = YES;\n\t\t\t\tCLANG_WARN_ENUM_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_INT_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;\n\t\t\t\tCLANG_WARN_UNREACHABLE_CODE = YES;\n\t\t\t\tCLANG_WARN__DUPLICATE_METHOD_MATCH = YES;\n\t\t\t\t\"CODE_SIGN_IDENTITY[sdk=iphoneos*]\" = \"iPhone Developer\";\n\t\t\t\tCOPY_PHASE_STRIP = NO;\n\t\t\t\tENABLE_STRICT_OBJC_MSGSEND = YES;\n\t\t\t\tGCC_C_LANGUAGE_STANDARD = gnu99;\n\t\t\t\tGCC_DYNAMIC_NO_PIC = NO;\n\t\t\t\tGCC_OPTIMIZATION_LEVEL = 0;\n\t\t\t\tGCC_PREPROCESSOR_DEFINITIONS = (\n\t\t\t\t\t\"DEBUG=1\",\n\t\t\t\t\t\"$(inherited)\",\n\t\t\t\t);\n\t\t\t\tGCC_SYMBOLS_PRIVATE_EXTERN = NO;\n\t\t\t\tGCC_WARN_64_TO_32_BIT_CONVERSION = YES;\n\t\t\t\tGCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;\n\t\t\t\tGCC_WARN_UNDECLARED_SELECTOR = YES;\n\t\t\t\tGCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;\n\t\t\t\tGCC_WARN_UNUSED_FUNCTION = YES;\n\t\t\t\tGCC_WARN_UNUSED_VARIABLE = YES;\n\t\t\t\tIPHONEOS_DEPLOYMENT_TARGET = 8.1;\n\t\t\t\tMTL_ENABLE_DEBUG_INFO = YES;\n\t\t\t\tONLY_ACTIVE_ARCH = YES;\n\t\t\t\tSDKROOT = iphoneos;\n\t\t\t};\n\t\t\tname = Debug;\n\t\t};\n\t\t0971D4C21A09B01600325B8D /* Release */ = {\n\t\t\tisa = XCBuildConfiguration;\n\t\t\tbuildSettings = {\n\t\t\t\tALWAYS_SEARCH_USER_PATHS = NO;\n\t\t\t\tCLANG_CXX_LANGUAGE_STANDARD = \"gnu++0x\";\n\t\t\t\tCLANG_CXX_LIBRARY = \"libc++\";\n\t\t\t\tCLANG_ENABLE_MODULES = YES;\n\t\t\t\tCLANG_ENABLE_OBJC_ARC = YES;\n\t\t\t\tCLANG_WARN_BOOL_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_CONSTANT_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;\n\t\t\t\tCLANG_WARN_EMPTY_BODY = YES;\n\t\t\t\tCLANG_WARN_ENUM_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_INT_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;\n\t\t\t\tCLANG_WARN_UNREACHABLE_CODE = YES;\n\t\t\t\tCLANG_WARN__DUPLICATE_METHOD_MATCH = YES;\n\t\t\t\t\"CODE_SIGN_IDENTITY[sdk=iphoneos*]\" = \"iPhone Developer\";\n\t\t\t\tCOPY_PHASE_STRIP = YES;\n\t\t\t\tENABLE_NS_ASSERTIONS = NO;\n\t\t\t\tENABLE_STRICT_OBJC_MSGSEND = YES;\n\t\t\t\tGCC_C_LANGUAGE_STANDARD = gnu99;\n\t\t\t\tGCC_WARN_64_TO_32_BIT_CONVERSION = YES;\n\t\t\t\tGCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;\n\t\t\t\tGCC_WARN_UNDECLARED_SELECTOR = YES;\n\t\t\t\tGCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;\n\t\t\t\tGCC_WARN_UNUSED_FUNCTION = YES;\n\t\t\t\tGCC_WARN_UNUSED_VARIABLE = YES;\n\t\t\t\tIPHONEOS_DEPLOYMENT_TARGET = 8.1;\n\t\t\t\tMTL_ENABLE_DEBUG_INFO = NO;\n\t\t\t\tSDKROOT = iphoneos;\n\t\t\t\tVALIDATE_PRODUCT = YES;\n\t\t\t};\n\t\t\tname = Release;\n\t\t};\n\t\t0971D4C41A09B01600325B8D /* Debug */ = {\n\t\t\tisa = XCBuildConfiguration;\n\t\t\tbaseConfigurationReference = 7E9F2DD6A233D1682F81CCD3 /* Pods-ZLPeoplePickerViewControllerDemo.debug.xcconfig */;\n\t\t\tbuildSettings = {\n\t\t\t\tASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;\n\t\t\t\tINFOPLIST_FILE = ZLPeoplePickerViewControllerDemo/Info.plist;\n\t\t\t\tLD_RUNPATH_SEARCH_PATHS = \"$(inherited) @executable_path/Frameworks\";\n\t\t\t\tPRODUCT_NAME = \"$(TARGET_NAME)\";\n\t\t\t};\n\t\t\tname = Debug;\n\t\t};\n\t\t0971D4C51A09B01600325B8D /* Release */ = {\n\t\t\tisa = XCBuildConfiguration;\n\t\t\tbaseConfigurationReference = 16F05380A033F1C8963BECC2 /* Pods-ZLPeoplePickerViewControllerDemo.release.xcconfig */;\n\t\t\tbuildSettings = {\n\t\t\t\tASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;\n\t\t\t\tINFOPLIST_FILE = ZLPeoplePickerViewControllerDemo/Info.plist;\n\t\t\t\tLD_RUNPATH_SEARCH_PATHS = \"$(inherited) @executable_path/Frameworks\";\n\t\t\t\tPRODUCT_NAME = \"$(TARGET_NAME)\";\n\t\t\t};\n\t\t\tname = Release;\n\t\t};\n\t\t0971D4C71A09B01600325B8D /* Debug */ = {\n\t\t\tisa = XCBuildConfiguration;\n\t\t\tbuildSettings = {\n\t\t\t\tBUNDLE_LOADER = \"$(TEST_HOST)\";\n\t\t\t\tFRAMEWORK_SEARCH_PATHS = (\n\t\t\t\t\t\"$(SDKROOT)/Developer/Library/Frameworks\",\n\t\t\t\t\t\"$(inherited)\",\n\t\t\t\t);\n\t\t\t\tGCC_PREPROCESSOR_DEFINITIONS = (\n\t\t\t\t\t\"DEBUG=1\",\n\t\t\t\t\t\"$(inherited)\",\n\t\t\t\t);\n\t\t\t\tINFOPLIST_FILE = ZLPeoplePickerViewControllerDemoTests/Info.plist;\n\t\t\t\tLD_RUNPATH_SEARCH_PATHS = \"$(inherited) @executable_path/Frameworks @loader_path/Frameworks\";\n\t\t\t\tPRODUCT_NAME = \"$(TARGET_NAME)\";\n\t\t\t\tTEST_HOST = \"$(BUILT_PRODUCTS_DIR)/ZLPeoplePickerViewControllerDemo.app/ZLPeoplePickerViewControllerDemo\";\n\t\t\t};\n\t\t\tname = Debug;\n\t\t};\n\t\t0971D4C81A09B01600325B8D /* Release */ = {\n\t\t\tisa = XCBuildConfiguration;\n\t\t\tbuildSettings = {\n\t\t\t\tBUNDLE_LOADER = \"$(TEST_HOST)\";\n\t\t\t\tFRAMEWORK_SEARCH_PATHS = (\n\t\t\t\t\t\"$(SDKROOT)/Developer/Library/Frameworks\",\n\t\t\t\t\t\"$(inherited)\",\n\t\t\t\t);\n\t\t\t\tINFOPLIST_FILE = ZLPeoplePickerViewControllerDemoTests/Info.plist;\n\t\t\t\tLD_RUNPATH_SEARCH_PATHS = \"$(inherited) @executable_path/Frameworks @loader_path/Frameworks\";\n\t\t\t\tPRODUCT_NAME = \"$(TARGET_NAME)\";\n\t\t\t\tTEST_HOST = \"$(BUILT_PRODUCTS_DIR)/ZLPeoplePickerViewControllerDemo.app/ZLPeoplePickerViewControllerDemo\";\n\t\t\t};\n\t\t\tname = Release;\n\t\t};\n/* End XCBuildConfiguration section */\n\n/* Begin XCConfigurationList section */\n\t\t0971D49B1A09B01600325B8D /* Build configuration list for PBXProject \"ZLPeoplePickerViewControllerDemo\" */ = {\n\t\t\tisa = XCConfigurationList;\n\t\t\tbuildConfigurations = (\n\t\t\t\t0971D4C11A09B01600325B8D /* Debug */,\n\t\t\t\t0971D4C21A09B01600325B8D /* Release */,\n\t\t\t);\n\t\t\tdefaultConfigurationIsVisible = 0;\n\t\t\tdefaultConfigurationName = Release;\n\t\t};\n\t\t0971D4C31A09B01600325B8D /* Build configuration list for PBXNativeTarget \"ZLPeoplePickerViewControllerDemo\" */ = {\n\t\t\tisa = XCConfigurationList;\n\t\t\tbuildConfigurations = (\n\t\t\t\t0971D4C41A09B01600325B8D /* Debug */,\n\t\t\t\t0971D4C51A09B01600325B8D /* Release */,\n\t\t\t);\n\t\t\tdefaultConfigurationIsVisible = 0;\n\t\t\tdefaultConfigurationName = Release;\n\t\t};\n\t\t0971D4C61A09B01600325B8D /* Build configuration list for PBXNativeTarget \"ZLPeoplePickerViewControllerDemoTests\" */ = {\n\t\t\tisa = XCConfigurationList;\n\t\t\tbuildConfigurations = (\n\t\t\t\t0971D4C71A09B01600325B8D /* Debug */,\n\t\t\t\t0971D4C81A09B01600325B8D /* Release */,\n\t\t\t);\n\t\t\tdefaultConfigurationIsVisible = 0;\n\t\t\tdefaultConfigurationName = Release;\n\t\t};\n/* End XCConfigurationList section */\n\t};\n\trootObject = 0971D4981A09B01600325B8D /* Project object */;\n}\n"
  },
  {
    "path": "ZLPeoplePickerViewControllerDemo/ZLPeoplePickerViewControllerDemo.xcodeproj/project.xcworkspace/contents.xcworkspacedata",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<Workspace\n   version = \"1.0\">\n   <FileRef\n      location = \"self:ZLPeoplePickerViewControllerDemo.xcodeproj\">\n   </FileRef>\n</Workspace>\n"
  },
  {
    "path": "ZLPeoplePickerViewControllerDemo/ZLPeoplePickerViewControllerDemo.xcworkspace/contents.xcworkspacedata",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<Workspace\n   version = \"1.0\">\n   <FileRef\n      location = \"group:ZLPeoplePickerViewControllerDemo.xcodeproj\">\n   </FileRef>\n   <FileRef\n      location = \"group:Pods/Pods.xcodeproj\">\n   </FileRef>\n</Workspace>\n"
  },
  {
    "path": "ZLPeoplePickerViewControllerDemo/ZLPeoplePickerViewControllerDemoTests/Info.plist",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/PropertyList-1.0.dtd\">\n<plist version=\"1.0\">\n<dict>\n\t<key>CFBundleDevelopmentRegion</key>\n\t<string>en</string>\n\t<key>CFBundleExecutable</key>\n\t<string>$(EXECUTABLE_NAME)</string>\n\t<key>CFBundleIdentifier</key>\n\t<string>com.axcel.$(PRODUCT_NAME:rfc1034identifier)</string>\n\t<key>CFBundleInfoDictionaryVersion</key>\n\t<string>6.0</string>\n\t<key>CFBundleName</key>\n\t<string>$(PRODUCT_NAME)</string>\n\t<key>CFBundlePackageType</key>\n\t<string>BNDL</string>\n\t<key>CFBundleShortVersionString</key>\n\t<string>1.0</string>\n\t<key>CFBundleSignature</key>\n\t<string>????</string>\n\t<key>CFBundleVersion</key>\n\t<string>1</string>\n</dict>\n</plist>\n"
  },
  {
    "path": "ZLPeoplePickerViewControllerDemo/ZLPeoplePickerViewControllerDemoTests/ZLPeoplePickerViewControllerDemoTests.m",
    "content": "//\n//  ZLPeoplePickerViewControllerDemoTests.m\n//  ZLPeoplePickerViewControllerDemoTests\n//\n//  Created by Zhixuan Lai on 11/4/14.\n//  Copyright (c) 2014 Zhixuan Lai. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n#import <XCTest/XCTest.h>\n\n@interface ZLPeoplePickerViewControllerDemoTests : XCTestCase\n\n@end\n\n@implementation ZLPeoplePickerViewControllerDemoTests\n\n- (void)setUp {\n    [super setUp];\n    // Put setup code here. This method is called before the invocation of each test method in the class.\n}\n\n- (void)tearDown {\n    // Put teardown code here. This method is called after the invocation of each test method in the class.\n    [super tearDown];\n}\n\n- (void)testExample {\n    // This is an example of a functional test case.\n    XCTAssert(YES, @\"Pass\");\n}\n\n- (void)testPerformanceExample {\n    // This is an example of a performance test case.\n    [self measureBlock:^{\n        // Put the code you want to measure the time of here.\n    }];\n}\n\n@end\n"
  }
]