Esempio n. 1
0
        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);
        }
Esempio n. 2
0
 public float GetHeight(UITableView tableView, NSIndexPath indexPath)
 {
     return(BubbleCell.GetSizeForText(tableView, Caption).Height + BubbleCell.BubblePadding.Height);
 }