在swift 3中重新加载部分方法? [英] Reload section method in swift 3?

查看:654
本文介绍了在swift 3中重新加载部分方法?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有用目标编写的代码cI想要将此代码转换为swift3代码。

I have code written in objective c.I want to convert this code into the swift3 code.

[_expandableTableView reloadSections:[NSIndexSet indexSetWithIndex:gestureRecognizer.view.tag] withRowAnimation:UITableViewRowAnimationAutomatic];

使用在线工具进行转换后,它给了我下面的代码,但它不起作用

After converting using online tool it gave me below code but it does not work

expandableTableView.reloadSections(IndexSet(index: gestureRecognizer.view!.tag), with: .automatic)

请告诉我该怎么做?

推荐答案

请参阅 swift3 以获取更多信息,请参阅

do like in swift3 for more information see this

expandableTableView.reloadSections(IndexSet(integer: gestureRecognizer.view!.tag), with: .automatic)

这篇关于在swift 3中重新加载部分方法?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆