#import <ContactsUI/ContactsUI.h>
新增联系人
CNMutableContact * contact = [[CNMutableContact alloc] init];
// 头像
contact.imageData = UIImagePNGRepresentation([UIImage imageNamed:@"avatar"]);
// 设置名字
contact.givenName = @"三";
// 设置姓氏
contact.familyName = @"张";
// 邮箱
CNLabeledValue *homeEmail = [CNLabeledValue labeledValueWithLabel:CNLabelHome value:@"hello@163.com"];
CNLabeledValue *workEmail = [CNLabeledValue labeledValueWithLabel:CNLabelWork value:@"world@163.com"];
contact.emailAddresses = @[homeEmail,workEmail];
// 手机号
contact.phoneNumbers = @[[CNLabeledValue labeledValueWithLabel:CNLabelPhoneNumberiPhone value:[CNPhoneNumber phoneNumberWithStringValue:@"12344445555"]]];
// 地址
CNMutablePostalAddress *homeAdress = [[CNMutablePostalAddress alloc] init];
homeAdress.street = @"贝克街";
homeAdress.city = @"伦敦";
homeAdress.state = @"英国";
homeAdress.postalCode = @"221B";
contact.