Giter Site home page Giter Site logo

donny8028 / ios_pincodetextfield Goto Github PK

View Code? Open in Web Editor NEW

This project forked from kolesa-team/ios_pincodetextfield

0.0 1.0 0.0 477 KB

A customizable verification code textField. Can be used for phone verification codes, passwords etc

License: MIT License

Objective-C 93.73% Ruby 6.27%

ios_pincodetextfield's Introduction

KKPinCodeTextField

A customizable verification code textField. Can be used for phone verification codes, passwords etc.

Настраиваемое текстовое поле для кода верификации. Может быть использованно для подтверждения телефона, email-a, ввода пароля и т.д.

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

  • iOS 8.0+

Installation

KKPinCodeTextField is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'KKPinCodeTextField'

Usage

  1. Interface Builder:

Add a UITextView in your Interface Builder and change the class of a textView from UITextView to KKPinCodeTextView. You can set the properties in the Attributes Inspector and see a live preview

  1. Programmatically:
KKPinCodeTextField *textField = [[KKPinCodeTextField alloc] initWithFrame:frame];
[self.view addSubview:textField];

Customization

digitsCount

Verification code length. Default value is 4

borderHeight

Bottom borders height. Default value is 4

bordersSpacing

Spacing between bottom borders. Default value is 10

filledDigitBorderColor

Bottom border color when digit is filled. Default value is UIColor.lightGrayColor

emptyDigitBorderColor

Bottom border color when digit is empty. Default value is UIColor.redColor

Author

Amirzhan, [email protected]

Contributing

Bug reports and pull requests are welcome

License

KKPinCodeTextField is available under the MIT license. See the LICENSE file for more info.

ios_pincodetextfield's People

Contributors

iamirzhan avatar

Watchers

Donny Ho 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.