title: How to retrieve phone number from Contacts framework
body: <p>New to contacts trying to retrieve Mobile Phone number. I have address name email but cannot figure out mobile phone. This is what I got. The portion marked with <code>**</code> is where I am going wrong.</p>
  
  <pre><code>if let oldContact = self.contactItem {
      let store = CNContactStore()
  
      do {
          let mykeysToFetch = [CNContactFormatter.descriptorForRequiredKeysForStyle(.FullName), CNContactEmailAddressesKey, CNContactPostalAddressesKey,CNContactImageDataKey, CNContactImageDataAvailableKey,CNContactPhoneNumbersKey]
          let contact = try store.unifiedContactWithIdentifier(oldContact.identifier, keysToFetch: mykeysToFetch)
  
          dispatch_async(dispatch_get_main_queue(), { () -&gt; Void in
              if contact.imageDataAvailable {
                  if let data = contact.imageData {
                      self.contactImage.image = UIImage(data: data)
                  }
              }
  
              self.fullName.text = CNContactFormatter().stringFromContact(contact)
              self.email.text = contact.emailAddresses.first?.value as? String
              self.phoneNumber.text = contact.phoneNumbers.first?.value as? String
  
              **if contact.isKeyAvailable(CNContactPhoneNumbersKey){
                  if let phoneNum = contact.phoneNumbers.first?.value as? String {
                      self.phoneNumber.text = phoneNum as String
                  }
  
              }**
  
              if contact.isKeyAvailable(CNContactPostalAddressesKey) {
                  if let postalAddress = contact.postalAddresses.first?.value as? CNPostalAddress {
                      self.address.text = CNPostalAddressFormatter().stringFromPostalAddress(postalAddress)
                  } else {
                      self.address.text = "No Address"
                  }
              }
          })
      } catch {
          print(error)
      }
  }
  </code></pre>