NSIndexSet in swift3

hi ,


dose any one know how to write code **** in swift ?


[tableView reloadSections:[NSIndexSet indexSetWithIndex:1] withRowAnimation:UITableViewRowAnimationAutomatic];



I wrote like this.


tableView.reloadSections(NSIndexSet(index: 1) as IndexSet, with: UITableViewRowAnimation.automatic)


but, looks something strange..

Accepted Reply

Use IndexSet directly in Swift 3.


tableView.reloadSections(IndexSet(integer: 1), with: .automatic)

Replies

Use IndexSet directly in Swift 3.


tableView.reloadSections(IndexSet(integer: 1), with: .automatic)