title: fetching phone number from address book
body: <p>I am using the following code to get mobile number (i.e. 1st phone number) of all contacts in my address book. I want to store all those number into <code>NSArray</code></p>
  
  <pre><code>self.dataSource = [[NSMutableArray alloc]init]; // dataSouce is delared in .h file
  ABAddressBookRef addressBook = ABAddressBookCreate();
  NSMutableArray *allPeople = (__bridge NSMutableArray *)ABAddressBookCopyArrayOfAllPeople(addressBook);
  int nPeople = ABAddressBookGetPersonCount(addressBook);
  
  for(int i=0; i &lt; nPeople; i++ ){
      ABRecordRef person = (__bridge ABRecordRef)([allPeople objectAtIndex:i]);
      NSString *name = @"";
  
      if(ABRecordCopyValue(person, kABPersonFirstNameProperty) != NULL)
          name = [[NSString stringWithFormat:@"%@", ABRecordCopyValue(person, kABPersonFirstNameProperty)] stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceCharacterSet]];
      [_dataSource addObject: name];
  
      ABMultiValueRef phoneNumberProperty = ABRecordCopyValue(person, kABPersonPhoneProperty);
      _phoneNumbers = (__bridge NSArray*)ABMultiValueCopyValueAtIndex(phoneNumberProperty, 0);
      CFRelease(phoneNumberProperty);
      NSLog(@"Phone numbers = %@", _phoneNumbers);
  }
  </code></pre>
  
  <p>but when I use <code>NSLog(@"Phone numbers = %@", _phoneNumbers);</code> the output comes out as </p>
  
  <pre><code>2012-11-07 15:31:06.116 contacts[4938:12b03] Phone numbers = 1 (800) 111-1111
  2012-11-07 15:31:06.117 contacts[4938:12b03] Phone numbers = (222) 355-5668
  2012-11-07 15:31:06.118 contacts[4938:12b03] Phone numbers = (910) 192-0192
  </code></pre>
  
  <p>I want the output in <code>NSArray</code> like </p>
  
  <pre><code>Phone numbers = ( 
  "1 (800) 111-1111",
  "(222) 355-5668",
  "(910) 192-0192" 
  )
  </code></pre>
  
  <p>how can I do this ?</p>