2016-10-24 2 views

답변

0

ContactsUI 프레임 워크를 추가하십시오. 이 같은 귀하의 viewcontroller에서 가져 오기

import ContactsUI 

추가 및 해당 viewcontroller에서이 다음 방법을 호출하십시오.

func addExistingContact() { 
    if #available(iOS 9.0, *) { 
     let contactPicker = CNContactPickerViewController() 
     contactPicker.delegate = self 
     self.presentViewController(contactPicker, animated: true, completion: nil) 
    } else { 
     // Fallback on earlier versions 
    } 

}