Skip to content

Instantly share code, notes, and snippets.

@gshackles
Created May 30, 2013 18:26
Show Gist options
  • Save gshackles/5679979 to your computer and use it in GitHub Desktop.
Save gshackles/5679979 to your computer and use it in GitHub Desktop.
using MonoTouch.UIKit;
using MonoTouch.Dialog;
namespace WTFDialogTest
{
public class WTFDialogTestViewController : DialogViewController
{
public WTFDialogTestViewController() : base(null)
{
Root = new RootElement("WTF Dialog") {
new Section
{
new StringElement("WTFOMGBBQ", () => {
new UIAlertView("Attention!", "Clicking is happening", null, "Huzzah", null).Show();
})
}
};
}
public override void ViewDidLoad()
{
base.ViewDidLoad();
TableView.Scrolled += delegate {
new UIAlertView("Attention!", "Scrolling is happening", null, "Boosh", null).Show();
};
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment