Created
May 30, 2013 18:26
-
-
Save gshackles/5679979 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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