본문 바로가기
[iOS] can't return type callbacks for 3 [iOS] can't return type callbacks for 3 ABMutableMultiValueRef multiValueRef = ABMultiValueCreateMutable(kABPersonPhoneProperty);for ( DataModel* model in array ){ ABMultiValueAddValueAndLabel(multiValueRef, (__bridge CFTypeRef)model, model, NULL);}ABRecordSetValue(self.record, property, multiValueRef, nil);CFRelease(multiValueRef); 위와 같이 코딩을 했더니 "can't return type callbacks for 3" 에러가 났다.여기서 kA.. 2017. 6. 28.
[iOS] 연락처 property constant 정리 [iOS] 연락처 property constant 정리 https://developer.apple.com/library/ios/documentation/AddressBook/Reference/ABPersonRef_iPhoneOS/index.html#//apple_ref/doc/constant_group/Personal_Information_Properties Personal Information Property const ABPropertyID kABPersonFirstNameProperty;const ABPropertyID kABPersonLastNameProperty;const ABPropertyID kABPersonMiddleNameProperty;const ABPropertyID kABPerson.. 2017. 6. 24.
[iOS Study] 연락처 프로그래밍 가이드 in iOS - Direct Interacting [iOS Study] 연락처 프로그래밍 가이드 in iOS - Direct Interacting https://developer.apple.com/library/ios/documentation/ContactData/Conceptual/AddressBookProgrammingGuideforiPhone/Chapters/DirectInteraction.html -address book 은 유저의 정보이기 떄문에 다룰 때 주의해야 한다.보통 변경사항에 대해 user 에게 confirm 을 받는다.group 에 대해서도 마찬가지이다. -record 에는 id 가 있는데, 이 id 를 오랫동안 잡고 있는 것은 정확성이 떨어질 수 있다.그래서 이 id 와 pair 로 name 을 가지고 있어서, operation 을.. 2017. 6. 20.
[iOS] 연락처 선택 modal 띄우기 [iOS] 연락처 선택 modal 띄우기 https://developer.apple.com/library/ios/documentation/ContactData/Conceptual/AddressBookProgrammingGuideforiPhone/Chapters/QuickStart.html#//apple_ref/doc/uid/TP40007744-CH2-SW1 1. #import 2. 프로토콜 선언 3. modal 띄우기ABPeoplePickerNavigationController *picker = [[ABPeoplePickerNavigationController alloc] init];picker.peoplePickerDelegate = self;[self presentModalViewController:.. 2017. 6. 16.
반응형