1

There is an option in default address book in iPhone which shows a section with title “Instant message (found in whatsApp)” as shown in attached image, and when we tap on that section it will redirect to a detail screen as per attached image.(Attached image shows this section for whatsapp, which redirects to it’s “Review”(detail) screen)

I’m using bellow stated code to display that section in default address book, if that contact using my app. With the help of this link: How to handle instant messaging URL from Contacts application (like Facebook)

[![ABAddressBookRef addressBook = ABAddressBookCreateWithOptions(NULL, &error);
ABRecordRef result = ABPersonCreate();

ABMultiValueRef social = ABMultiValueCreateMutable(kABMultiDictionaryPropertyType);
ABMultiValueAddValueAndLabel(social, (__bridge CFTypeRef)(\[NSDictionary dictionaryWithObjectsAndKeys:@"your app service name", kABPersonSocialProfileServiceKey,                                                               @"+91xxxxxxxxxx”,kABPersonSocialProfileUsernameKey, @"TestAddressBook://myVC", kABPersonSocialProfileURLKey,nil\]), (__bridge CFStringRef)@"your app special identifier", NULL);
ABRecordSetValue(result, kABPersonSocialProfileProperty, social, NULL);]

Now, my question is how to redirect to detail screen when user tap on that section.

Image 1

Image 2

Community
  • 1
  • 1
iOS Developer
  • 437
  • 4
  • 11

0 Answers0