How to Open Addressbook New Contact Screen

220 Views Asked by At

In my application I have UIBarButtonSystemItemAdd on right side of the navigation controller. On tapping of that plus icon I want to open address book in editable mode. Please refer the following image.

How to open address book UI for new contact in editable mode directly?

enter image description here

1

There are 1 best solutions below

2
On BEST ANSWER

In the AddressBookUI.framework, there is a class called ABNewPersonViewController. Basically, what you want to do is this:

ABNewPersonViewController *abnpvc = [[ABNewPersonViewController alloc] init];
[abnpvc setNewPersonViewDelegate: self];
[self presentViewController: abnpvc animated: YES completion: nil];

This brings up the view you are looking for.