Giter VIP home page Giter VIP logo

cypasswordview's Introduction

CYPasswordView


CYPasswordView是一个模仿支付宝输入支付密码的密码框。

一、说明


  • CYPasswordView是一个简单且实用的输入密码框
  • 具体用法主要参考Demo程序

二、使用方法


使用 CocoaPods

pod 'CYPasswordView'

手动导入文件

  1. CYPasswordView文件夹添加到项目中
  2. 导入主头文件#import "CYPasswordView.h"

三、部分API的介绍


  • 实例化CYPasswordView对象
[[CYPasswordView alloc] init];
  • 弹出密码框
- (void)showInView:(UIView *)view;
  • 密码输入完成的回调
@property (nonatomic, copy) void (^finish) (NSString *password);
  • 隐藏键盘
- (void)hidenKeyboard;
  • 隐藏密码框
- (void)hide;
  • 开始加载(发送网络请求时,加载动画)
- (void)startLoading;
  • 加载完成(暂停动画)
- (void)stopLoading;
  • 请求完成
- (void)requestComplete:(BOOL)state;
- (void)requestComplete:(BOOL)state message:(NSString *)message;
  • 设置对话框标题
@property (nonatomic, copy) NSString *title;

四、效果示例


CYPasswordView

cypasswordview's People

Contributors

chernyog avatar

Watchers

James Cloos avatar  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.