The country code for the phone number.
@property (nonatomic, copy, readonly) NSString *countryCode;
The remaining portion of the phone number after the country code.
@property (nonatomic, copy, readonly) NSString *phoneNumber;
This is the designated initializer.
The country code for the phone number
The remaining portion of the phone number
While it is safe to provide any characters for the
phoneNumber, the values should only
contain digits. All other characters will be stripped from this value when it is used.
Compares the receiver to another phone number
The phone number to compare to
Converts the receiver to an
- (NSString *)
All characters that are not digits will be stripped from the phone number and a
+ character will precede
the country code value.