Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
BBAlertView: Simple block based UIAlertView extension
Objective-C
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
BBAlertView
BlockBasedAlertView.xcodeproj
BlockBasedAlertView
BlockBasedAlertViewTests
.gitignore
README.md

README.md

BBAlertView

BBAlertView is UIAlertView with blocks.

How to use it

It's super easy. First, create a new BBAlertView object

BBAlertView * alerView = [BBAlertView alertWithTitle:@"Title goes here" 
                                             message:@"and message here"];

Setup every button you want with a title and an action for it in a block (or just NULL)

[alerView setCancelButtonWithTitle:@"Cancel" onTapDo:^{

    NSLog(@"Cancel button was tapped");

}];

[alerView addButtonWithTitle:@"Other Button" onTapDo:^{

    NSLog(@"Other button was tapped");

}];

And finally show it

[alerView show];

That's it!

Something went wrong with that request. Please try again.