Returns a new phone number object initialized with the specified phone number string.
SDKs
- iOS 9.0+
- macOS 10.11+
- Mac Catalyst 13.0+
- watchOS 2.0+
Framework
- Contacts
Declaration
- (instancetype)initWithStringValue:(NSString *)string;
Parameters
string
A string value with which to initializes the phone number object.
Return Value
A newly initialized phone number object.
Discussion
You should initialize this with a phone number string. This method returns nil
when the value of string
is nil
.