문제

I can modify or create a new person in my address book, but I can't find how to add a property for the phone work number.

According to the Apple Documentation there is no property kABPersonPhoneWorkLabel. There is the work fax number (kABPersonPhoneWorkFAXLabel), but not phone work.

How can I do this?

도움이 되었습니까?

해결책

Try this ones:

const CFStringRef kABWorkLabel;
const CFStringRef kABHomeLabel;
const CFStringRef kABOtherLabel;

They are at the bottom of the document you linked, at Generic Property Labels

For some reasons they are separated from the other labels.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top