获取断点检索地址簿数据 [英] getting breakpoint retrieving addressbook data
本文介绍了获取断点检索地址簿数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在检索 phoneNumbers
,我正在收到一个断点。我花了几个小时试图解决它,但仍然没有运气。
I am retrieving phoneNumbers
and I am getting a breakpoint. I've spent the past few hours trying to fix it, but still no luck.
-(void)textMessage{
ABAddressBookRef addressBook = ABAddressBookCreate();
NSMutableArray *array =[[NSMutableArray alloc]init];
NSMutableArray *temp;
NSMutableArray *temp2 = [[NSMutableArray alloc]init];
for(int i =0;i<[savedPeople count];i++){
NSString *temp = (NSString*) ABAddressBookCopyPeopleWithName(addressBook, (CFStringRef)[savedPeople objectAtIndex:i]);
NSLog(@"%@",temp);
[temp2 addObject:temp];
ABRecordRef thisPerson = (ABRecordRef)[temp2 objectAtIndex:i];
ABMultiValueRef phoneProperty = ABRecordCopyValue(thisPerson, kABPersonPhoneProperty);
NSLog(@"%@",phoneProperty);
}
array = temp2;
NSLog(@"%@",array);
CFRelease(addressBook);
}
有人知道它有什么问题吗?
Anybody know what's wrong with it?
推荐答案
断点是你设置的东西,而不是错误。转到断点检查器:
Breakpoints are somthing that you set, not errors. Go to the breakpoint inspector:
并删除您在那里找到的任何条目。您还可以使用断点按钮暂时关闭断点:
And delete any entries you find there. You can also turn off breakpoints temporarily with the Breakpoints button:
或通过菜单命令产品>调试>停用断点。
or via the menu command Product>Debug>Deactivate Breakpoints.
这篇关于获取断点检索地址簿数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文