<!--
{
  "availability" : [
    "iOS: 9.0.0 -",
    "iPadOS: 9.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.11.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Contacts",
  "identifier" : "/documentation/Contacts/CNPhoneNumber",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "Contacts"
    ],
    "preciseIdentifier" : "c:objc(cs)CNPhoneNumber"
  },
  "title" : "CNPhoneNumber"
}
-->

# CNPhoneNumber

An immutable object representing a phone number for a contact.

```
class CNPhoneNumber
```

## Overview

`CNPhoneNumber` objects are thread-safe, and you may access their properties from any thread of your app.

## Topics

### Creating a Phone Number Object

[`-  initWithStringValue:`](/documentation/Contacts/CNPhoneNumber/init(stringValue:))

Returns a new phone number object initialized with the specified phone number string.

[`+  phoneNumberWithStringValue:`](/documentation/Contacts/CNPhoneNumber/phoneNumberWithStringValue:)

Returns a new phone number object initialized with the specified phone number string.

### Getting the Phone Number

[`stringValue`](/documentation/Contacts/CNPhoneNumber/stringValue)

The string value of the phone number.

### Getting Phone-Related Keys

[`CNContactPhoneNumbersKey`](/documentation/Contacts/CNContactPhoneNumbersKey)

A phone numbers of a contact.

### Deprecated

[`-  init`](/documentation/Contacts/CNPhoneNumber/init())

[`+  new`](/documentation/Contacts/CNPhoneNumber/new())

## Relationships

### Conforms To

[`Hashable`](/documentation/Swift/Hashable)

[`NSCopying`](/documentation/Foundation/NSCopying)

[`NSCoding`](/documentation/Foundation/NSCoding)

[`CVarArg`](/documentation/Swift/CVarArg)

[`NSSecureCoding`](/documentation/Foundation/NSSecureCoding)

[`Equatable`](/documentation/Swift/Equatable)

[`CustomStringConvertible`](/documentation/Swift/CustomStringConvertible)

[`CustomDebugStringConvertible`](/documentation/Swift/CustomDebugStringConvertible)

[`NSObjectProtocol`](/documentation/ObjectiveC/NSObjectProtocol)

### Inherits From

[`NSObject-swift.class`](/documentation/ObjectiveC/NSObject-swift.class)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)