Type Method

phoneNumberWithStringValue:

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

Declaration

+ (instancetype)phoneNumberWithStringValue:(NSString *)stringValue;

Parameters

stringValue

A string value with which to initialize phone number object.

Return Value

A newly initialize the phone number object.

Discussion

This is a convenience class method that provides the same functionality as initWithStringValue:. This method returns nil when the value of stringValue is nil.

See Also

Creating a Phone Number Object

- initWithStringValue:

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