Latest 0.0.4
Homepage https://github.com/chernyog/CYPasswordView
License MIT
Platforms ios 8.0, requires ARC
Authors

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

Latest podspec

{
    "name": "CYPasswordView",
    "version": "0.0.4",
    "authors": {
        "cheny": "[email protected]"
    },
    "summary": "CYPasswordView u662fu4e00u4e2au6a21u4effu652fu4ed8u5b9du8f93u5165u652fu4ed8u5bc6u7801u7684u5bc6u7801u6846u3002",
    "homepage": "https://github.com/chernyog/CYPasswordView",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source": {
        "git": "https://github.com/chernyog/CYPasswordView.git",
        "tag": "0.0.4"
    },
    "source_files": "CYPasswordView/**/*.{h,m}",
    "public_header_files": "CYPasswordView/*.h",
    "resources": "CYPasswordView/CYPasswordView.bundle",
    "requires_arc": true
}

Pin It on Pinterest

Share This