{
Debug.WriteLine("TRYING TO CREATE CELL");
if (UIApplication.SharedApplication.StatusBarHidden)
{
UIApplication.SharedApplication.StatusBarHidden = false;
}
this.numberLinesIncrease = 0;
resize = false;
var comment = (Comment)item;
var cell = (CommentsCell)tableView.DequeueReusableCell(commentsCellIdentifier,indexPath);
if (cell == null)
{
cell = new CommentsCell();
//var views = NSBundle.MainBundle.LoadNIB(CommentsCell.Key,cell,null);
}
//textFont = cell.comment.Font;
cell.comment.Text = comment.comment;
//cell.comment.resizeLabel();
cell.LayoutMargins = UIEdgeInsets.Zero;
//Debug.WriteLine("RETURNING CELL" + cell.comment.Text);
//cell.Frame = new CGRect(cell.Bounds.X, cell.Bounds.Y, cell.Bounds.Width * .8, cell.Bounds.Height);
this.TableView.EstimatedRowHeight = 65f;
this.TableView.RowHeight = UITableView.AutomaticDimension;
return cell;
}