GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - realWayneZhang/WMPasswordView: 仿微信、支付宝输入支付密码

BranchesTags
Open more actions menu

Latest commit

 

History

8 Commits
8 Commits

Folders and files

NameName
Last commit message
Last commit date
WMPasswordViewDemo
WMPasswordViewDemo
 
 
README.md
README.md
 
 
WMPasswordView.gif
WMPasswordView.gif
 
 

Repository files navigation

WMPasswordView

Swift4.2 仿微信、支付宝输入支付密码

效果展示

Usage

把WMPasswordView文件夹拖入项目中, 代码如下:

class ViewController: UIViewController {
    @IBOutlet weak var payPwdLabel: UILabel!
    /// lazy load
    lazy var payPasswordView: WMPasswordView = {
        let pwdView = WMPasswordView(type: WMPwdType.payPwd, amount: 250.0)
        /// 回调 closure 可以在本类任意方法类写
        pwdView.completed = { [weak self] pwd in
            self?.payPwdLabel?.text = "输入的密码:" + pwd
        }
        return pwdView
    }()
    /// 类方法调用
    @IBAction func classFunction() {
        WMPasswordView.show(type: WMPwdType.payPwd, amount: 1200.0) { [weak self] pwd in
            self?.payPwdLabel?.text = "输入的密码:" + pwd
        }
    }
    /// 实例方法调用
    @IBAction func instanceFunction() {
        payPasswordView.show()
    }
}

如果对您有帮助,请给个Star!😄,Thank you for look!

About

仿微信、支付宝输入支付密码

Resources

Readme
Activity

Stars

5 stars

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.