私は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:NSURLオブジェクトを初期化するときにブレークポイントで停止しました"というエラーが表示される可能性があります](http://stackoverflow.com/questions/10016890/thread-1-stopped-at-breakpoint-error-when-initializing -an-nsurl-object) –