I have to say the learning curve of MonoTouch has been harsh, I just keep on
hitting hurdles over and over again.
My next issue is RowSelected is not firing
e.g.
public class SampleTableViewController :
SQLiteTableViewController<SampleItem>
{
static NSString key = new NSString ("SampleItemCellKey");
public SampleTableViewController (SQLiteConnection sqlitedb)
: base (sqlitedb, 16) {
}
protected override void RowSelected(UITableView tableView,
NSIndexPath indexPath) { <--- this never fires
base.RowSelected(tableView, indexPath);
}
// Note: This is the only method, other than the .ctor, that we
actually need to implement in
// order to have a functional SQLiteTableViewController capable
of displaying data from our
// SQLite table.
protected override UITableViewCell GetCell (UITableView
tableView, NSIndexPath indexPath, SampleItem item)
{
var cell = tableView.DequeueReusableCell (key);
if (cell == null)
cell = new UITableViewCell
(UITableViewCellStyle.Value1, key);
cell.TextLabel.Text = item.Title;
cell.DetailTextLabel.Text = item.Details;
return cell;
}
public override bool ShouldAutorotateToInterfaceOrientation
(UIInterfaceOrientation toInterfaceOrientation)
{
return true;
}
}
I know it is my lack of understanding of how this stuff is structured, I am
more than happy reading any good documentation on this, do I need to setup my
own delegates?
thanks
Alex
_______________________________________________
MonoTouch mailing list
[email protected]
http://lists.ximian.com/mailman/listinfo/monotouch