Hi Jason, "this" is a DialogViewController(). So I implemented a new instance of the DialogViewController, then put that block of code in the ViewDidLoad() method.
The app just shuts down stating an exception at DialogViewController.cs line 63. I have no idea what that means though. MD certainly doesn't pronounce the exception very well if one is fired. Any thoughts? Is there a particular order to where I should include the RefreshRequested block of code? Cheers, Brett On Sun, Feb 26, 2012 at 8:24 PM, Jason Awbrey <[email protected]> wrote: > what context are you doing this in (ie, what is "this" - a class derived > from DVC, or something else?) > > what specifically is the error when it crashes? > > On Sun, Feb 26, 2012 at 6:29 PM, Brett Spurrier > <[email protected]>wrote: > >> Hi all, >> >> I have a DialogViewController which I am trying to implement the >> Pull-to-Refresh functions. >> However, everytime I add the line: >> >> this.RefreshRequested += delegate { >> NSTimer.CreateScheduledTimer (1, delegate { >> this.ReloadComplete(); >> } ); >> } ; >> >> it crashes. >> >> I've been trying to follow the example at: >> >> https://github.com/migueldeicaza/MonoTouch.Dialog/blob/master/Sample/DemoRefresh.cs >> >> which works when I run the sample project. But when I try to move the >> logi to my own app, it crashes. >> The Table displays just fine. It's only when I add the RefreshRequested >> handler that it crashes. >> >> Does anyone have any experience with this? >> >> Many thanks! >> Brett >> >> _______________________________________________ >> MonoTouch mailing list >> [email protected] >> http://lists.ximian.com/mailman/listinfo/monotouch >> >> >
_______________________________________________ MonoTouch mailing list [email protected] http://lists.ximian.com/mailman/listinfo/monotouch
