private static UITableViewCell CreateCellFor(string title, UIView view) { var cell = new UITableViewCell(); var label = new UILabel(); label.Font = UIFont.PreferredSubheadline; label.Text = title; cell.ContentView.AddSubviews(label, view); cell.ConstrainLayout(() => cell.ContentView.Left() == cell.Left() && cell.ContentView.Right() == cell.Right() && cell.ContentView.Top() == cell.Top() && cell.ContentView.Bottom() == cell.Bottom() && label.Left() == cell.ContentView.Left() + Layout.StandardSuperviewSpacing && label.CenterY() == cell.ContentView.CenterY() && label.Width() == 100 && view.Left() == label.Right() + 10 && view.Right() == cell.ContentView.Right() - Layout.StandardSuperviewSpacing && view.CenterY() == cell.ContentView.CenterY()); return(cell); }