Follow me on Twitter at Twitter.com/wbm
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:http://morewally.com/cs/blogs/wallym/rss.aspx
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.

News

Visual Studio Magazine Column Personal Blog

.NET

Book Authors

Business

Family

Friends

Georgia Tech Bloggers

Personal

Archives

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.",

                    null,

"Ok thanks", null);

                av.Show(); 

UIAlertView

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

Comments

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?

TIA.

# January 11, 2010 7:35 PM