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.
Run make
to generate the binding. You will find the generated dll inside binding folder.
There are two factory methods to get you started:
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 ();
MBHUDView.HudWithBody("Wait.", MBAlertViewHUDType.ActivityIndicator, 4.0f, true);
You can see more in the easy to follow demo.
MBAlertView is available under the MIT license.