Latest1.0.6
Homepagehttps://github.com/pcjbird/QuickMobileTextField
LicenseMIT
Platformsios 8.0, requires ARC
FrameworksFoundation, UIKit, CoreGraphics
Authors

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

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

QuickMobileTextField

安装 / 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

  
QuickMobileTextField
  
Twitter URL
Twitter Follow

Latest podspec

{
    "name": "QuickMobileTextField",
    "version": "1.0.6",
    "summary": "A Chinese mainland area mobile phone number input textfield. u4e2du56fdu5927u9646u5730u533au624bu673au53f7u7801u8f93u5165u6587u672cu6846u3002",
    "description": "A Chinese mainland area mobile phone number input textfield. u5febu901fu96c6u6210u4e00u4e2au4e2du56fdu5927u9646u5730u533au624bu673au53f7u7801u8f93u5165u6587u672cu6846u3002",
    "homepage": "https://github.com/pcjbird/QuickMobileTextField",
    "license": "MIT",
    "authors": {
        "pcjbird": "[email protected]"
    },
    "source": {
        "git": "https://github.com/pcjbird/QuickMobileTextField.git",
        "tag": "1.0.6"
    },
    "social_media_url": "http://www.lessney.com",
    "requires_arc": true,
    "documentation_url": "https://github.com/pcjbird/QuickMobileTextField/blob/master/README.md",
    "screenshots": "https://github.com/pcjbird/QuickMobileTextField/blob/master/logo.png",
    "platforms": {
        "ios": "8.0"
    },
    "frameworks": [
        "Foundation",
        "UIKit",
        "CoreGraphics"
    ],
    "source_files": "QuickMobileTextField/*.{h,m}",
    "public_header_files": [
        "QuickMobileTextField/QuickMobileTextField.h",
        "QuickMobileTextField/QuickMaterialMobileTextField.h"
    ],
    "pod_target_xcconfig": {
        "OTHER_LDFLAGS": "-lObjC"
    }
}

Pin It on Pinterest

Share This