MBAlertView is a fast block-based alert and HUD library with a dead simple API.
As seen in Noteclub. Download it won't you?
###MBAlertView now comes in two styles.
####Flat
####Classic
- Nested alerts and HUDs
- Block based
- Images
- Nice animations
- Doesn't use any PNG files. Everything is drawn with code.
##Installation
After cloning, run
git submodule init
git submodule update
There are two factory methods to get you started:
There are now two alert styles, Classic and Flat. Flat is the iOS 7 style.
To create a flat alert:
MBFlatAlertView *alert = [MBFlatAlertView alertWithTitle:@"Special Instructions" detailText:@"Are you sure?" cancelTitle:@"Cancel" cancelBlock:nil];
[alert addButtonWithTitle:@"Hello" type:MBFlatAlertButtonTypeBold action:^{}];
[alert addToDisplayQueue];
#####Note: MBFlatAlertView is auto-layout based.
To create a classic alert:
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. (That's currently broken)
##Other Follow me on Twitter so that I feel like I'm doing something with my life.
MBAlertView is available under the MIT license. (Whatever the hell that means)