Skip to content

xiekw2010/DXAlertView

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DXAlertView

Feature

  1. API is simple just like the UIAlertView.
  2. The callback function is simple to write.
  3. The animation is cool or in another saying----different from the triditional way.

How to use

eg:

DXAlertView *alert = [[DXAlertView alloc] initWithTitle:@"Congratulations" contentText:@"You have bought something" leftButtonTitle:@"Ok" rightButtonTitle:@"Fine"];
[alert show];

alert.leftBlock = ^() {
    NSLog(@"left button clicked");
};
alert.rightBlock = ^() {
    NSLog(@"right button clicked");
};
alert.dismissBlock = ^() {
    NSLog(@"Do something interesting after dismiss block");
};

PicDemo:

screenshots

About

A path style alert view

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published