I want to read the name of an ABSource in the addressBook framework. Is this possible? The following code sample leaves me with null, while the currentSource pointer is valid.
NSString* stringName = (NS开发者_开发知识库String*)ABRecordCopyValue(currentSource, kABSourceNameProperty);
Thank you in advance, Martin
NSString *sourceTypeName = (NSString *)((CFStringRef)ABRecordCopyValue(source, kABSourceNameProperty));
ABSourceType sourceType = [(NSNumber *)ABRecordCopyValue(currentSource, kABSourceTypeProperty) intValue];
See ABSourceType for values.
精彩评论