Latest 0.0.1
Homepage https://github.com/Doubletaps76/PYAlertView
License MIT
Platforms ios 7.1, requires ARC
Dependencies pop
Authors

PYAlertView

all animation by using POP

PYDropMenu Screenshot

Adding to your project

platform :ios, '7'
    pod 'PYAlertView'

Usage


PYAlertView *alertView = [[PYAlertView alloc] initWithCustomView:_customAlertView andAnimationType:PYAlertViewAnimationSlideInOut];
[alertView setButtonTitles:[NSMutableArray arrayWithArray:@[@"Cancel"]]];
[alertView setButtonBackgroundColor:[UIColor lightGrayColor] andTextColor:[UIColor whiteColor] andFont:[UIFont fontWithName:@"Avenir-Light" size:15.0] andIndex:0];

// show in self.view
[alertView showWithButtonTouchUpInsideBlock:^(PYAlertView *alertView, NSUInteger buttonIndex) {
    if (buttonIndex == 0) {
        [alertView close];
    }
} withParentView:self.view];

Latest podspec

{
    "name": "PYAlertView",
    "version": "0.0.1",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "homepage": "https://github.com/Doubletaps76/PYAlertView",
    "authors": {
        "Tsau,Po-Yuan": "[email protected]"
    },
    "summary": "An easy-to-use Custom AlertView with POP animation !",
    "source": {
        "git": "https://github.com/Doubletaps76/PYAlertView.git",
        "tag": "0.0.1"
    },
    "source_files": "PYAlertView/**/*.{h,m}",
    "platforms": {
        "ios": "7.1"
    },
    "dependencies": {
        "pop": [
            "~> 1.0"
        ]
    },
    "requires_arc": true
}

Pin It on Pinterest

Share This