[MonoTouch] MonoTouch.Dialog Pull-to-Refresh

2012-02-26 Thread Brett Spurrier
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

Re: [MonoTouch] MonoTouch.Dialog Pull-to-Refresh

2012-02-26 Thread Craig Dunn
Brett, short answer: attach the handler in the ctor. TL;DR the code at DialogViewController.cs line 63 is this (MonoTouch.Dialog source is on github https://github.com/migueldeicaza/MonoTouch.Dialog/): if (tableView != null) throw new ArgumentException (You should set the handler before the