init(stringValue:)
Returns a new phone number object initialized with the specified phone number string.
Declaration
init(stringValue string: 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.