Latest 0.0.1
Homepage https://github.com/Gocy015/CYAlertView
License MIT
Platforms ios 8.0
Frameworks UIKit
Authors

An alert view that you can play with !

Inspired By TeehanLax’s TLAlertView,CYAlertView is an alert view with basic UIKit Dynamic animations,and has similar usage as the UIAlertView in UIKit.

cyalertview_preview

How To Use ?

To use CYAlertView,simply drag the "CYAlertView" folder into your project,import "CYAlertView.h",and you are ready to go !

Creating instance:

CYAlertView *alert = [[CYAlertView alloc]initWithTitle:@"Title"
                                               message:@"Message"
                                           withActions:@[] 
                                            tapToClose:NO];

[alert show];

if you pass nil or an empty array to the initilizer,the alert view will generate a default OK button,you can also add your custom callbacks using CYAlertAction,then add it into the array that you are passing to the initializer.

CYAlertAction *cancelAction = [[CYAlertAction alloc]initWithTitle:@"Cancel"
                                                   withActionType:ActionTypeDestructive
                                                          handler:^(CYAlertAction *action){
                                                                 NSLog(@"Cancel");
                                                           }];

CYAlertView *alert = [[CYAlertView alloc]initWithTitle:@"Title"         
                                               message:@"Message"
                                           withActions:@[cancelAction]
                                            tapToClose:NO];
[alert show];

For more details,please download the sample project.

Latest podspec

{
    "name": "CYAlertView",
    "version": "0.0.1",
    "summary": "CYAlertView:An alert view that you can play with !",
    "description": "##CYAlertViewn*An alert view that has dynamic behaviors using uikitdynamics,enhance the experience of using uialertview.",
    "homepage": "https://github.com/Gocy015/CYAlertView",
    "screenshots": "https://cloud.githubusercontent.com/assets/14084540/9724893/a857cdc6-5610-11e5-8a59-9b9bb195b258.gif",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Gocy": "[email protected]"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source": {
        "git": "https://github.com/Gocy015/CYAlertView.git",
        "tag": "0.0.1",
        "commit": "bc44fff8dee94441ea26be0489a19b8cf0c3e04c"
    },
    "source_files": "SampleForCYAlertView/Views/CYAlertView/*.{h,m}",
    "frameworks": "UIKit"
}

Pin It on Pinterest

Share This