QuickMobileTextField 1.0.7

QuickMobileTextField 1.0.7

Maintained by pcjbird.




logo Build Status Pod Version Pod Platform Pod License CocoaPods CocoaPods GitHub release GitHub release Website

QuickMobileTextField

A Chinese mainland area mobile phone number input textfield. 中国大陆地区手机号码格式化输入文本框。

特性 / Features

  1. 中国大陆地区手机号码 3/4/4 格式化输入。
  2. 支持设置 placeholder 颜色。
  3. 支持设置文字在输入框内的间距。
  4. 预设键盘类型和关闭自动校正,自动限制输入长度。
  5. 支持设置预输入手机号,支持直接获取非格式化的手机号文本(不含空格)。
  6. 支持 xib, storyboard。
  7. 支持 Material 风格。

演示 / Demo

安装 / Installation

方法一:QuickMobileTextField is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'QuickMobileTextField'

使用 / Usage

#import <QuickMobileTextField/QuickMobileTextField.h>

@interface ViewController ()

@property (weak, nonatomic) IBOutlet QuickMobileTextField *mobileTextField;
@property (weak, nonatomic) IBOutlet QuickMobileTextField *nextMobileTextField;
@property (weak, nonatomic) IBOutlet QuickMobileTextField *materialMobileTextField;
@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view, typically from a nib.
    self.mobileTextField.mobile = @"1709";
    self.nextMobileTextField.textInsets = UIEdgeInsetsMake(4, 15, 4, 15);
    self.materialMobileTextField.textInsets = UIEdgeInsetsMake(15, 15, 15, 15);
}

@end

关注我们 / Follow us

  
   Twitter URL Twitter Follow