質問

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

役に立ちましたか?

解決

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.

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top