Note that there are some explanatory texts on larger screens.

plurals
  1. POUiTableView not showing, GetCell not being called
    text
    copied!<p>I have the following code set up:</p> <pre><code> TableView = new UITableView(); TableView.Source = new DataSource(); m_MainScroll.Add(view); // scrollview area TableView.ReloadData (); </code></pre> <p>DataSource is simple:</p> <pre><code> class DataSource : UITableViewSource { public DataSource () { } public override int NumberOfSections (UITableView tableView) { return 1; } public override int RowsInSection (UITableView tableview, int section) { return 10; } // Customize the appearance of table view cells. public override UITableViewCell GetCell (UITableView tableView, MonoTouch.Foundation.NSIndexPath indexPath) { return new UITableViewCell(); } } </code></pre> <p>Basically GetCell is never called and I never see the table show up anyway.</p> <p>Any ideas why?</p> <p>edit:</p> <p>Some more potentially relevant code:</p> <p>(in ViewDidLoad):</p> <pre><code> m_MainScroll = new UIScrollView(new RectangleF(0, 0, 320, 372)); m_MainScroll.ContentSize = new SizeF(300, ScrollerHeight); m_MainScroll.ShowsVerticalScrollIndicator = true; m_MainScroll.DraggingStarted += DragStarted; AddComponent(m_MainScroll); UIToolbar bar = new UIToolbar(new RectangleF(0, 372, 320, 44)); View.Add(bar); UIBarButtonItem barBut = new UIBarButtonItem(); barBut.Style = UIBarButtonItemStyle.Bordered; barBut.Title = "Next"; NextButton = barBut; UIBarButtonItem flexer = new UIBarButtonItem(UIBarButtonSystemItem.FlexibleSpace); UIBarButtonItem []items = new UIBarButtonItem[2]; items[0] = flexer; items[1] = barBut; bar.Items = items; AddComponent(bar); public void AddComponent(UIView view) { m_Components.Add(view); View.Add(view); } </code></pre> <p>Where m_Components is just a list of UIView and is really only used to defocus controls which have the keyboard on.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload