Showing posts with label Alert View. Show all posts
Showing posts with label Alert View. Show all posts

Wednesday, January 15, 2014

DX Alert View

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


iOS / iPhone / iPad DX Alert View iOS / iPhone / iPad DX Alert View 2
Download: https://github.com/xiekw2010/DXAlertView/archive/master.zip