极简通讯录

极简通讯录_第1张图片
demo.gif

DWAddressBook

  • 支持pod

    • pod 'DWAddressBook'

       #import "DWAddressBook.h"
      //获取用户权限
      [DWAddressBook requestAddressBookAuthorization];
       
       DWAddressBook *addressbook = [[DWAddressBook alloc] initWithResultBlock:^(NSString *name, NSString *mobNumber) {
       self.label.text = [NSString stringWithFormat:@"%@\n%@", name, mobNumber];
       } failure:^{
       NSLog(@"授权失败");
       }];
       [self presentViewController:addressbook animated:YES completion:nil];
      
  • 可自定义大多数属性

你可能感兴趣的:(极简通讯录)