Inherits from UITextField
Declared in SHSPhoneTextField.h
SHSPhoneTextField.m

Overview

Simple UITextField subclass to handle phone numbers formats ARC enabled.

Properties

formatter

SHSPhoneNumberFormatter instance. Use is to configure format properties.

@property (readonly, strong) SHSPhoneNumberFormatter *formatter

Discussion

SHSPhoneNumberFormatter instance. Use is to configure format properties.

Declared In

SHSPhoneTextField.h

textDidChangeBlock

Block will be called when text changed

@property (nonatomic, copy) SHSTextBlock textDidChangeBlock

Discussion

Block will be called when text changed

Declared In

SHSPhoneTextField.h

Instance Methods

phoneNumber

Return phone number without format. Ex: 89201235678

- (NSString *)phoneNumber

Discussion

Return phone number without format. Ex: 89201235678

Declared In

SHSPhoneTextField.h

setFormattedText:

Formate a text and set it to a textfield.

- (void)setFormattedText:(NSString *)text

Discussion

Formate a text and set it to a textfield.

Declared In

SHSPhoneTextField.h