Latest 0.0.1
Homepage https://github.com/TakayoshiMiyamoto/PasswordDialogViewController
License MIT
Platforms ios 7.1, requires ARC
Authors

CocoaPods

PasswordDialogViewController is a simple password dialog UIViewController class.

Screens

Normal
Switch

Requirements

  • iOS7.1+

Install

PasswordDialogViewController is available on cocoapods.

pod 'PasswordDialogViewController'

or include the PasswordDialogViewController class in your project.

Usage

#import "PasswordDialogViewController.h"
@implementation ViewController

- (IBAction)pressPasswordDialogButton:(id)sender {
    NSString *masterPassword = @"password";

    PasswordDialogViewController *viewController;
    viewController = [[PasswordDialogViewController alloc] initWithPassword:masterPassword];

    viewController.delegate = self;

    viewController.titleText = @"Title";
    viewController.messageText = @"This is message.";

    [viewController show:^(BOOL isOK) {
        if (isOK) {
            NSLog(@"Succeed");
        }
        else {
            NSLog(@"Cancel");
        }
    }];
}

@end

License

This PasswordDialogViewController is released under the MIT License.
See LICENSE for details.

Latest podspec

{
    "name": "PasswordDialogViewController",
    "version": "0.0.1",
    "summary": "PasswordDialogViewController is a simple password dialog UIViewController class.",
    "homepage": "https://github.com/TakayoshiMiyamoto/PasswordDialogViewController",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Takayoshi Miyamoto": "[email protected]"
    },
    "source": {
        "git": "https://github.com/TakayoshiMiyamoto/PasswordDialogViewController.git",
        "tag": "0.0.1"
    },
    "platforms": {
        "ios": "7.1"
    },
    "requires_arc": true,
    "source_files": "PasswordDialogViewController/*.{h,m}"
}

Pin It on Pinterest

Share This