Follow me on Twitter at
FYI, I'm blogging most of my stuff over at More Wally now.
You might want to add my rss feed to your reader at:
UIAlertView - the alert box for the iPhone - Wallace B. McClure

Wallace B. McClure

All About Wally McClure - The musings of Wallym on Web, HTML5, Mobile, Xamarin.iOS, Xamarin.Android, and Windows Azure.


Visual Studio Magazine Column Personal Blog


Book Authors




Georgia Tech Bloggers



UIAlertView - the alert box for the iPhone

There are times when the user needs to be presented with some information or question. MonoTouch has a UIAlertView object. The UIAlertView is instantiated with a set of parameters. On the object instance, the .Show() method is called. For .NET developers, this is similar in concept to the .NET MessageBox. For JavaScript developers, this is similar to the window.alert() and window.confirm() methods. 

                var av = new UIAlertView("Badness happened",

"The scheme '" + prot + "' is not supported on this device.",


"Ok thanks", null);



Want to know more about developing with the iPhone?  Check out my Wrox Blox eBook on developing applications with MonoTouch for the iPhone/iPod touch for .NET/C# developers


Debbie said:

Is it ever necessary to dispose of UI elements to release resources in MonoTouch (e.g. wrap the creation of the UIAlertView with "using")? If it's never necessary, why not? If it is sometimes necessary, what are the rules?


# January 11, 2010 7:35 PM