Haltepunkt abrufen Adressbuchdaten abrufen

Ich rufe abphoneNumbers und ich bekomme einen Haltepunkt. Ich habe in den letzten Stunden versucht, das Problem zu beheben, aber immer noch kein Glück.

<code>-(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);
}
</code>

! [1]http://min.us/mQOzL3w5V

Weiß jemand was daran falsch ist?

Antworten auf die Frage(1)

Ihre Antwort auf die Frage