Class

CNPhoneNumber

An immutable object representing a phone number for a contact.

Declaration

class CNPhoneNumber : NSObject

Overview

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

Topics

Creating a Phone Number Object

init(stringValue: String)

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

Getting the Phone Number

var stringValue: String

The string value of the phone number.

Getting Phone-Related Keys

let CNContactPhoneNumbersKey: String

A phone numbers of a contact.

Deprecated

Relationships

Inherits From

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software