【发布时间】:2017-03-15 13:48:41
【问题描述】:
我有用objective c编写的代码。我想把这段代码转换成swift3代码。
[_expandableTableView reloadSections:[NSIndexSet indexSetWithIndex:gestureRecognizer.view.tag] withRowAnimation:UITableViewRowAnimationAutomatic];
使用在线工具转换后,它给了我下面的代码,但它不起作用
expandableTableView.reloadSections(IndexSet(index: gestureRecognizer.view!.tag), with: .automatic)
请告诉我怎么做?
【问题讨论】:
-
“不起作用”的意思是……?错误说明了什么?
标签: ios arrays swift uitableview reloaddata