Skip to content

Files

Latest commit

 

History

History

MBAlertView

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

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

Run make to generate the binding. You will find the generated dll inside binding folder.

There are two factory methods to get you started:

Alerts

var alert = MBAlertView.AlertWithBody ("Are you sure you want to delete this note? You cannot undo this.", "Cancel", () => {
	// Cancel button Actions
	Console.WriteLine ("Tapped Cancel Button");
});

alert.AddButtonWithText ("Delete", MBAlertViewItemType.Destructive, () => {
// Delete button Actions
	Console.WriteLine ("Tapped Delete Button");
});

alert.AddToDisplayQueue ();

HUDs

MBHUDView.HudWithBody("Wait.", MBAlertViewHUDType.ActivityIndicator, 4.0f, true);

You can see more in the easy to follow demo.

License

MBAlertView is available under the MIT license.

Original Objective-C version

https://github.com/mobitar/MBAlertView