AKFPhoneNumber
有此級別的更新版本。前往查看 最新版本。

This class represents a phone number.

Conforms to:NSCopying, NSSecureCoding
Inherits from: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;
宣告於: 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;
宣告於: AKFPhoneNumber.h