我有一段用Objective C写的代码,我想将其转换为Swift3代码。
[_expandableTableView reloadSections:[NSIndexSet indexSetWithIndex:gestureRecognizer.view.tag] withRowAnimation:UITableViewRowAnimationAutomatic];
我使用在线工具转换后得到以下代码,但它不起作用。
expandableTableView.reloadSections(IndexSet(index: gestureRecognizer.view!.tag), with: .automatic)
请告诉我如何做?