[DEPRECATED] A fast block-based alert and HUD library with a simple API.
Switch branches/tags
Nothing to show
Clone or download
Latest commit 096000b Nov 27, 2013
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
AlertsDemo removed submodule dependency, fixed demo project Aug 16, 2013
MBAlertView Merge branch 'master' of github.com:mobitar/MBAlertView Nov 1, 2013
LICENSE added license Jan 15, 2013
MBAlertView.podspec Update pod spec to new tag Nov 1, 2013
README.md readme Aug 16, 2013

README.md

MBAlertView

MBAlertView is a fast block-based alert and HUD library with a simple API.

Features

  • Nested alerts and HUDs
  • Block based
  • Images
  • Nice animations
  • Doesn't use any PNG files. Everything is drawn with code.

Usage

Alerts: Flat

MBFlatAlertView *alert = [MBFlatAlertView alertWithTitle:@"Special Instructions" detailText:@"Are you sure?" cancelTitle:@"Cancel" cancelBlock:nil];
[alert addButtonWithTitle:@"Hello" type:MBFlatAlertButtonTypeBold action:^{}];
[alert addToDisplayQueue];

Alerts: Classic

MBAlertView *alert = [MBAlertView alertWithBody:@"Are you sure you want to delete this note? You cannot undo this." cancelTitle:@"Cancel" cancelBlock:nil];
[alert addButtonWithText:@"Delete" type:MBAlertViewItemTypeDestructive block:^{}];
[alert addToDisplayQueue];

HUDs

[MBHUDView hudWithBody:@"Wait." type:MBAlertViewHUDTypeActivityIndicator hidesAfter:4.0 show:YES];

You can see more in the easy to follow demo.

##Other

Bitar @bitario

License

MBAlertView is available under the MIT license.