GSPasswordInputView is a wechat payment like password input view.
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.
platform :ios, '7.0'
pod 'GSPasswordInputView'
- 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;
- iOS7.0 (>=)
- ARC
GSPasswordInputView is released under the MIT license. See LICENSE for details.