Skip to content

robertoseidenberg/MBAlertView

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MBAlertView

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

Features

  • 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

Usage

There are two factory methods to get you started:

Alerts

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];

HUDs

[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.

Bitar @bitario

License

MBAlertView is available under the MIT license. (Whatever the hell that means)

About

A fast block-based alert and HUD library with a dead simple API.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Objective-C 100.0%