DXAlertView
Feature
- API is simple just like the UIAlertView.
- The callback function is simple to write.
- 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: