I have a multisection that use row type XLFormRowDescriptorTypeSelectorPush
I want to select the row and push when a new row is added to the section.
I'm overriding formRowHasBeenAdded() and then calling
self.tableView.selectRow(at: indexPath, animated: true, scrollPosition: .none)
However the new row is not selected and the delegate method
tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) is not called.
I feel like I'm missing something simple here but can't figure it out.
Appreciate the help
I got it working by also calling the delegate method too.
tableView?.selectRow(at: indexPath, animated: true, scrollPosition:.none) tableView?.delegate?.tableView?(tableView!, didSelectRowAt: indexPath)
I have a multisection that use row type
XLFormRowDescriptorTypeSelectorPush
I want to select the row and push when a new row is added to the section.I'm overriding
formRowHasBeenAdded()
and then callingself.tableView.selectRow(at: indexPath, animated: true, scrollPosition: .none)
However the new row is not selected and the delegate methodtableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath)
is not called. I feel like I'm missing something simple here but can't figure it out. Appreciate the help