MBAlertView is a fun and simple block-based alert and HUD library for iOS, as seen in Notestand.
- Nested alerts and HUDs
- Block based
- Images
- Nice animations
- Doesn't use any PNG files. Everything is drawn with code.
There are two factory methods to get you started:
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];
[MBHUDView hudWithBody:@"Wait." type:MBAlertViewHUDTypeActivityIndicator hidesAfter:4.0 show:YES];
You can see more in the easy to follow demo.
MBAlertView is available under the MIT license.