OTPTextView 2.0.1

OTPTextView 2.0.1

Ehsan Omid 维护。



OTPTextView

CI Status Version License Platform

OTPTextView 允许您非常方便地管理 OTP 代码

DEMO

实现

打开 Wiki 点击查看,您可以使用 Storyboard 或在您的代码中实现它

简单实现

let myOTPTextView = OTPTextView(frame:CGRect(x: 10, y: 400, width: 300, height: 50)) view.addSubview(myOTPTextView) print(myOTPTextView.getNumber())

安装

SWIFT 包管理器 简易安装 ( Xcode 11 )

https://github.com/ehsanomid/OTPTextView.git

OTPTextView 通过 CocoaPods 提供。要安装它,只需将以下行添加到您的 Podfile 中

pod 'OTPTextView'

作者

Ehsan Omid

许可协议

OTPTextView 以 MIT 许可证提供。有关更多信息,请参阅 LICENSE 文件。