AKFPhoneNumber
A more recent version of this class is available. Check out the latest version.

This class represents a phone number.

Conforms to:NSCopying, NSSecureCoding
Inherits from:NSObject
Declared in:AKFPhoneNumber.h
Properties
countryCode

The country code for the phone number.

@property (nonatomic, copy, readonly) NSString *countryCode;
Declared In: AKFPhoneNumber.h
phoneNumber

The remaining portion of the phone number after the country code.

@property (nonatomic, copy, readonly) NSString *phoneNumber;
Declared In: AKFPhoneNumber.h
Instance Methods
initWithCountryCode:phoneNumber:

This is the designated initializer.

ParameterDescription
countryCode

The country code for the phone number

phoneNumber

The remaining portion of the phone number

- (instancetype)
initWithCountryCode: (NSString *)countryCode
phoneNumber: (NSString *)phoneNumber
NS_DESIGNATED_INITIALIZER;
Declared In: AKFPhoneNumber.h
isEqualToPhoneNumber:

Compares the receiver to another phone number

ParameterDescription
phoneNumber

The phone number to compare to

- (BOOL) isEqualToPhoneNumber:(AKFPhoneNumber *)phoneNumber;
Declared In: AKFPhoneNumber.h
stringRepresentation

Converts the receiver to an NSString.

- (NSString *) stringRepresentation;
Declared In: AKFPhoneNumber.h