Skip to content

Chren/GSPasswordInputView

Repository files navigation

GSPasswordInputView

GSPasswordInputView is a wechat payment like password input view.

GSPasswordInputView

Howto Install

Install with CocoaPods

CocoaPods is a dependency manager for Objective-C, which automates and simplifies the process of using 3rd-party libraries in your projects. See the Get Started section for more details.

Podfile

platform :ios, '7.0'
pod 'GSPasswordInputView'

Usage

  • Storyboard
  Drag an UIView to your storyboard, set its class to GSPasswordInputView.
  That's it!
  • Create from code
  GSPasswordInputView *pwdInputView = [[GSPasswordInputView alloc] initWithFrame:CGRectMake(0, 0, 160, 40)];
  pwdInputView.numberOfDigit = 6;
  [self.view addSubview:pwdInputView];
  • Delegate Implement delegate below to get called when input complete;
  - (void)didFinishEditingWithInputView:(GSPasswordInputView *)anInputView text:(NSString *)aText;

Requirements

  • iOS7.0 (>=)
  • ARC

License

GSPasswordInputView is released under the MIT license. See LICENSE for details.

About

Wechat payment like password input view

Resources

License

Stars

Watchers

Forks

Packages

No packages published