public override UITableViewCell GetCell(UITableView tableView, NSIndexPath indexPath) { try { if (cell == null) { cell = new TextInputCell( "C", controller.LabelText, controller.ValidateAndNotify); var i = cell.InputField; i.Placeholder = controller.InputText; i.Text = controller.InputText; i.AccessibilityLabel = controller.Title; i.AutocorrectionType = UITextAutocorrectionType.No; var theme = DocumentAppDelegate.Shared.Theme; i.TextColor = theme.TableCellTextColor; i.KeyboardAppearance = theme.IsDark ? UIKeyboardAppearance.Dark : UIKeyboardAppearance.Default; theme.Apply(cell); i.BecomeFirstResponder(); } return(cell); } catch (Exception ex) { Log.Error(ex); return(new UITableViewCell()); } }
public override UITableViewCell GetCell (UITableView tableView, NSIndexPath indexPath) { try { if (cell == null) { cell = new TextInputCell ( "C", controller.LabelText, controller.ValidateAndNotify); var i = cell.InputField; i.Placeholder = controller.InputText; i.Text = controller.InputText; i.AccessibilityLabel = controller.Title; i.AutocorrectionType = UITextAutocorrectionType.No; var theme = DocumentAppDelegate.Shared.Theme; i.TextColor = theme.TableCellTextColor; i.KeyboardAppearance = theme.IsDark ? UIKeyboardAppearance.Dark : UIKeyboardAppearance.Default; theme.Apply (cell); i.BecomeFirstResponder (); } return cell; } catch (Exception ex) { Log.Error (ex); return new UITableViewCell (); } }