Using MonoTouch on IOS6, how do I get my address book contacts which were created in iPhone only (excluding contacts from other groups such as Facebook)?
I'm using the following code, however, it seems to return people from every group. The results would include contacts I've created as well as contacts synced from Facebook in IOS6.
ABAddressBook iPhoneAddressBook = ABAddressBook.Create(out err);
if(err != null)
return null;
return iPhoneAddressBook.GetPeople();
I have tried doing the following, but the GetGroup function returns null.
return iPhoneAddressBook.GetPeople(iPhoneAddressBook.GetGroup(0).Source, ABPersonSortBy.FirstName);