I am trying to access kABPersonHomePageLabel
. From my understanding first i have to access a dictionary generated by calling this property kABPersonURLProperty
as i did below.
when i am NSloging the web
instance i get this log :
2013-10-09 20:49:04.823 contacts[1303:907] _$!<HomePage>!$_
ABMultiValueRef websites = ABRecordCopyValue((__bridge ABRecordRef)record, kABPersonURLProperty);
if (ABMultiValueGetCount(websites) > 0) {
NSLog(@"BBIIGGEERR");
CFStringRef web = ABMultiValueCopyLabelAtIndex(websites,0);
NSLog(@"%@",web);
}
I know i have a home url in this particular contact, but how can i extract the url?