Loading a cell from Nib
public override UITableViewCell GetCell (UITableView tableView,
NSIndexPath indexPath)
{
var cell = tableView.DequeueReusableCell (CellType.Key) as CellType;
if (cell == null)
{
cell = new CellType();
var views = NSBundle.MainBundle.LoadNib("CellType", cell, null);
cell = Runtime.GetNSObject(views.ValueAt(0)) as CellType;
}
//...
}
No comments:
Post a Comment