public override UITableViewCell GetCell(UITableView tv) { var cell = tv.DequeueReusableCell(isLeft ? BubbleCell.KeyLeft : BubbleCell.KeyRight) as BubbleCell; if (cell == null) { cell = new BubbleCell(isLeft); } cell.Update(Caption); return(cell); }
public nfloat GetHeight(UITableView tableView, NSIndexPath indexPath) { return(BubbleCell.GetSizeForText(tableView, Caption).Height + BubbleCell.BubblePadding.Height); }