문제

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