Giter Club home page Giter Club logo

mlbpasswordtextfield's Introduction

MLBPasswordTextField

License MIT CocoaPods Language Platform Support

A custom password input like WeChat payment for iOS.

中文介绍

Demo Project

See MLBPasswordTextFieldDemo/MLBPasswordTextFieldDemo.xcworkspace.

Usage

In Programmatically

MLBPasswordTextField * textField = [[MLBPasswordTextField alloc] initWithFrame:CGRectMake(0, 0, 240, 40)];

In Iterface Builder

Drag an UITextField to your Storyboard or XIB, set its class to MLBPasswordTextField.

That's it!

If you want to custom, using properties in the Attributes Inspector.

Delegate

Delegate Implement delegate below to get called when input complete:

- (void)mlb_passwordTextField:(MLBPasswordTextField *)pwdTextField didFilledPassword:(NSString *)password;

Features

  • Easy to use
  • Use with Storyboards, XIBs, Code
  • Design in Storyboard or XIB

Version History

  • 0.0.2 Bug Fixes. Draw border and dot more precision.
  • 0.0.1 First version. Contains common features.

Installation

CocoaPods

  1. Add pod 'MLBPasswordTextField' to your Podfile.
  2. Run pod install or pod update.
  3. Import <MLBPasswordTextField/MLBPasswordTextField.h>.

Carthage

Not yet supported.

Manually

  1. Download all the files in the MLBPasswordTextField subdirectory.
  2. Add the source files to your Xcode project.
  3. Import MLBPasswordTextField.h.

Requirements

This library requires iOS 7.0+Xcode 8.0+.

Tested Devices

Devices

iPhone 5S (iOS 8.3)

iPhone 7 Plus (iOS 10.1.1)

Simulators

iPhone 6 (iOS 9.3)

iPhone 7 (iOS 10.1)

License

MLBPasswordTextField is provided under the MIT license. See LICENSE file for details.

中文介绍

一个 iOS 上自定义的密码输入文本框,类似于微信支付。

演示项目

运行 MLBPasswordTextFieldDemo/MLBPasswordTextFieldDemo.xcworkspace

使用方式

代码中使用

MLBPasswordTextField * textField = [[MLBPasswordTextField alloc] initWithFrame:CGRectMake(0, 0, 240, 40)];

Iterface Builder 中使用

拖拽一个 UITextField 到你的 Storyboard 或者 XIB 中,将其 Class 设置为 MLBPasswordTextField

就这样!

如果想自定义,可以使用 Attributes Inspector 中提供的属性。

Delegate

当输入完成时,可以使用 Delegate 的委托方法来获取回调:

- (void)mlb_passwordTextField:(MLBPasswordTextField *)pwdTextField didFilledPassword:(NSString *)password;

功能

  • 使用简单
  • 可以在 Storyboards、XIB 中使用,当然也可以通过代码创建
  • 可以在 Storyboard 或者 XIB 中配置自定义属性

版本历史

  • 0.0.2 Bug 修复。更加精确地画边框和点。
  • 0.0.1 第一版。

安装

CocoaPods

  1. 在 Podfile 中添加 pod 'MLBPasswordTextField'
  2. 运行 pod installpod update
  3. 导入 <MLBPasswordTextField/MLBPasswordTextField.h>。

Carthage

暂未支持。

手动安装

  1. 下载 MLBPasswordTextField 文件夹内所有源文件。
  2. 将 MLBPasswordTextField 文件夹内所有源文件添加(拖入)到你的工程中。
  3. 导入 MLBPasswordTextField.h

系统要求

该项目最低支持 iOS 7.0+Xcode 8.0+

测试设备

真机

iPhone 5S (iOS 8.3)

iPhone 7 Plus (iOS 10.1.1)

模拟器

iPhone 6 (iOS 9.3)

iPhone 7 (iOS 10.1)

许可证

MLBPasswordTextField 使用 MIT 许可证,详情见 LICENSE 文件。

mlbpasswordtextfield's People

Contributors

meilbn avatar

Watchers

Carabineiro avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.