我正在检索phoneNumbers
我得到一个断点。我花了几个小时试图修复它,但仍然没有成功。
-(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);
}
![1] http://min.us/mQOzL3w5V
有人知道这是怎么回事吗?
Breakpoints are somthing that you set, not errors. Go to the breakpoint inspector:
并删除您在那里找到的所有条目。您还可以使用“断点”按钮暂时关闭断点:
或通过菜单命令“产品”>“调试”>“停用断点”。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)