public override void RowSelected(UITableView tableView, NSIndexPath indexPath) { tableView.ResignFirstResponder(); if (indexPath.Section == 1) { tableView.DeselectRow(indexPath, true); ((FormDataSource)tableView.DataSource).ResignFirstResponder(); controller.HandleSubmit(); } else if (indexPath.Section == 2) { tableView.DeselectRow(indexPath, true); UIApplication.SharedApplication.OpenUrl( new NSUrl(controller.authenticator.CreateAccountLink.AbsoluteUri)); } }
public void SelectNext() { for (var i = 0; i < controller.authenticator.Fields.Count; i++) { if (fieldCells[i].TextField.IsFirstResponder) { if (i + 1 < fieldCells.Length) { fieldCells[i + 1].TextField.BecomeFirstResponder(); return; } else { fieldCells[i].TextField.ResignFirstResponder(); controller.HandleSubmit(); return; } } } }