public static PullToRefreshTableCellView LoadFromNib() { // this bizarre loading sequence is modified from a blog post on AlexYork.net // basically we create an empty cell in C#, then pass that through a NIB loading, which then magically // gives us a new cell back in MonoTouch again var cell = new PullToRefreshTableCellView("{}"); var views = NSBundle.MainBundle.LoadNib("PullToRefreshTableCellView", cell, null); var cell2 = Runtime.GetNSObject(views.ValueAt(0)) as PullToRefreshTableCellView; return cell2; }
public static PullToRefreshTableCellView LoadFromNib() { // this bizarre loading sequence is modified from a blog post on AlexYork.net // basically we create an empty cell in C#, then pass that through a NIB loading, which then magically // gives us a new cell back in MonoTouch again var cell = new PullToRefreshTableCellView("{}"); var views = NSBundle.MainBundle.LoadNib("PullToRefreshTableCellView", cell, null); var cell2 = Runtime.GetNSObject(views.ValueAt(0)) as PullToRefreshTableCellView; return(cell2); }