heardrwt / RHAddressBook

A Cocoa / Objective-C library for interfacing with the iOS AddressBook.
Other
696 stars 154 forks source link

Save person went to hash section #58

Open hoandang opened 10 years ago

hoandang commented 10 years ago

Every time when I save a person with only _firstname_, he somehow goes to hash section in address book ? Is that normal behaviour ?

I tried to create a contact in the apple contact app, it went correctly to alphabet section.

addressbook = [[RHAddressBook alloc] init];
RHPerson *new = [addressbook newPersonInDefaultSource];
new.firstName = @"TEST";
new.lastName = @"";

RHMutableMultiValue *phoneNumbers = [[RHMutableMultiValue alloc] initWithType:kABMultiStringPropertyType];
[phoneNumbers addValue:@"999999999" withLabel: RHPersonPhoneMobileLabel];
new.phoneNumbers = phoneNumbers;

[new save];