AKFPhoneNumber

This class represents a phone number.

Conforms to:NSCopying, NSSecureCoding
Superclass:NSObject
Declared in:AKFPhoneNumber.h
ทรัพย์สิน
countryCode

The country code for the phone number.

@property (nonatomic, copy, readonly) NSString *countryCode;
ให้คำรับรองไว้ใน: AKFPhoneNumber.h
phoneNumber

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

@property (nonatomic, copy, readonly) NSString *phoneNumber;
ให้คำรับรองไว้ใน: AKFPhoneNumber.h
วิธีการทันใจ
initWithCountryCode:phoneNumber:

This is the designated initializer.

พารามิเตอร์คำอธิบาย
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;
Discussion:

While it is safe to provide any characters for the countryCode and phoneNumber, the values should only contain digits. All other characters will be stripped from this value when it is used.

ให้คำรับรองไว้ใน: AKFPhoneNumber.h
isEqualToPhoneNumber:

Compares the receiver to another phone number

พารามิเตอร์คำอธิบาย
phoneNumber

The phone number to compare to

- (BOOL) isEqualToPhoneNumber:(AKFPhoneNumber *)phoneNumber;
ให้คำรับรองไว้ใน: AKFPhoneNumber.h
stringRepresentation

Converts the receiver to an NSString.

- (NSString *) stringRepresentation;
Discussion:

All characters that are not digits will be stripped from the phone number and a + character will precede the country code value.

ให้คำรับรองไว้ใน: AKFPhoneNumber.h