/MBAlertView

Fast, fun, and simple block-based alerts and HUDs.

Primary LanguageObjective-CMIT LicenseMIT

MBAlertView

MBAlertView is a fun and simple block-based alert and HUD library for iOS, as seen in Notestand.

Features

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

Usage

There are two factory methods to get you started:

Alerts

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.

License

MBAlertView is available under the MIT license.