Question

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

Was it helpful?

Solution

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top