完成 http 请求后以编程方式创建动态表单
Create dynamic form programmatically after completion of http request
我使用这个库 https://github.com/ortuman/SwiftForms 创建了 swift 表单。我希望在 http 请求完成后加载表单,或者我可以将 http 结果加载到表单上的任何其他解决方案。这是我的代码
我尝试将新部分附加到表单并在 func loadLayerForm() 末尾重新加载 table,如下所示:
//add new section to the form
self.form.sections.append(newSection)
//reload table view
tableView.reloadData()
我使用这个库 https://github.com/ortuman/SwiftForms 创建了 swift 表单。我希望在 http 请求完成后加载表单,或者我可以将 http 结果加载到表单上的任何其他解决方案。这是我的代码
我尝试将新部分附加到表单并在 func loadLayerForm() 末尾重新加载 table,如下所示:
//add new section to the form
self.form.sections.append(newSection)
//reload table view
tableView.reloadData()