title: Contacts Framework. Access to phones ' values
body: <pre><code>- (void)viewDidLoad {
      [super viewDidLoad];
      self.givenName = [[NSMutableArray alloc]init];
  
      NSArray *KeysToFetch = @[CNContactGivenNameKey, CNContactFamilyNameKey, CNContactPhoneNumbersKey ];
      NSString *containerId = [[[CNContactStore alloc]init]defaultContainerIdentifier];
      NSPredicate *predicate = [CNContact predicateForContactsInContainerWithIdentifier:containerId];
  
      _contacts = [[[CNContactStore alloc]init]unifiedContactsMatchingPredicate:predicate keysToFetch:KeysToFetch error:nil];
  
      for (CNContact *c  in _contacts) {
  
          [_givenName addObject:c.givenName];
          NSLog(@"%@", c.phoneNumbers);
      }
  }
  </code></pre>
  
  <p>Hi, how can I get access to the 'digits' value? when i do a NSLog of 'phoneNumbers' i get this on console:</p>
  
  <pre><code>2015-10-19 12:33:41.423 testContacts[7064:2001002] (
  "&lt;CNLabeledValue: 0x7b72eed0: identifier=A73ABAA0-7698-47D7-A2BD-630E04C0C811, label=_$!&lt;Mobile&gt;!$_, value=&lt;CNPhoneNumber: 0x7b734db0: countryCode=us, digits=8885555512&gt;&gt;",
  "&lt;CNLabeledValue: 0x7b72eb80: identifier=BC927A1D-AA98-4E67-82A9-BB5AD09A6CAE, label=_$!&lt;Home&gt;!$_, value=&lt;CNPhoneNumber: 0x7b72ecd0: countryCode=us, digits=8885551212&gt;&gt;"
  </code></pre>