2014-02-20 7 views
0

내 응용 프로그램에서 내비게이션 컨트롤러의 오른쪽에 UIBarButtonSystemItemAdd이 있습니다. 그 더하기 아이콘을 두 드리면 편집 가능한 모드로 주소록을 열려고합니다. 다음 이미지를 참조하십시오.주소록을 여는 방법 새 연락처 화면

새 연락처의 주소록 UI를 편집 가능한 모드로 직접 여는 방법은 무엇입니까? AddressBookUI.framework에서

enter image description here

답변

1

ABNewPersonViewController라는 클래스가있다. 기본적으로, 당신이하고 싶은 것은 이것이다 :

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

이 당신이 찾고있는 뷰를 제공합니다.

+0

감사합니다 ... 매력과 같은 작품 .... 화면에서 키보드로 이름 필드에 직접 집중할 수 있습니까? – milanpanchal

+0

다음과 같이 작동 할 수 있습니다. http://stackoverflow.com/questions/17975680/how-to-programmatically-select-a-uitextfield-for-editing – erdekhayser