Latest 0.4.2
Homepage https://github.com/CrazyRoy/MRPasswordView
License MIT
Platforms ios 8.0, requires ARC
Authors

screenshot

Podfile

To integrate MRPasswordView into your Xcode project using CocoaPods, specify it in your Podfile:

source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '8.0'

target 'TargetName' do
pod 'MRPasswordView'
end

Then, run the following command:

$ pod install

Used

First:

#import <MRPasswordView/MRPasswordView.h>

Then:

// init
MRPasswordView *passwordView = [[MRPasswordView alloc] initWithFrame:CGRectMake(([UIScreen mainScreen].bounds.size.width-300)/2, 200, 300, 60)];
passwordView.passwordType = MRPasswordTypeExpress;
passwordView.marginWidth = 5.f;
passwordView.rectColor = [UIColor grayColor];
passwordView.squareBgColor = [UIColor whiteColor];
passwordView.textFont = [UIFont systemFontOfSize:20.f];
passwordView.passwordDelegate = self;
passwordView.cursorColor = [UIColor grayColor];
[self.view addSubview:passwordView];

#pragma mark - MRPasswordViewDelegate 代理

/**
 *  监听输入的改变
 */
- (void)passWordDidChange:(MRPasswordView *)passWord {
    NSLog(@"======密码改变:%@",passWord.textStore);
}

/**
 *  监听输入的完成时
 */
- (void)passWordCompleteInput:(MRPasswordView *)passWord {
    NSLog(@"+++++++密码输入完成");
}

/**
 *  监听开始输入
 */
- (void)passWordBeginInput:(MRPasswordView *)passWord {
    NSLog(@"-------密码开始输入");
}

so easy for you use it !!!

Latest podspec

{
    "name": "MRPasswordView",
    "version": "0.4.2",
    "summary": "u4effu652fu4ed8u5b9du652fu4ed8u5bc6u7801u6587u672cu6846u6548u679c.",
    "description": "u672cu7740u5b66u4e60u3001u7814u7a76u7684u6001u5ea6uff0cu4effu5236u5bc6u7801u6587u672cu6846u6548u679cuff1bu5728u4e00u4e9bu5df2u6709u535au5ba2u8fdbu884cu4f18u5316uff0cu6ee1u8db3u9700u6c42u3002nV 1.0 inituff1bnV 2.0 u589eu52a0u6e05u9664u5bc6u7801u65b9u6cd5uff1bnV 3.0 u4feeu6539uff1bnV 4.0 u652fu6301u4e0bu5212u7ebfu6837u5f0fuff1b",
    "homepage": "https://github.com/CrazyRoy/MRPasswordView",
    "screenshots": "https://github.com/CrazyRoy/MRPasswordView/blob/master/screenshot.png",
    "license": "MIT",
    "authors": {
        "CrazyRoy": "[email protected]"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source": {
        "git": "https://github.com/CrazyRoy/MRPasswordView.git",
        "tag": "0.4.2"
    },
    "source_files": [
        "MRPasswordView/**/*.{jpg,png}",
        "MRPasswordView/**/*.{h,m}"
    ],
    "requires_arc": true
}

Pin It on Pinterest

Share This