form.allRows returns all the rows, if you know the index you can call form.allRows.removeAtIndex

You can access the section of the row and then remove the row from that section.
section.removeAtIndex(rowIndex)
section.removeFirst()
section.removeLast()
//or
section.remove(:at) in swift 3
section[index] = nil may work too.
having a row is pretty simple to get its index. We can always get its section and the form by...
row.section?.form
section.indexOf(row)
section.index(of:) in swift 3.
and get its index is pretty simple as well.
Both
FormandSectiontypes conform to MutableCollection protocol.
Hope it helps.
This is my code and UI, if i do this 'form[0].removeLast()', all row will hidden


try with this..
var section = form[0]
section.removeLast()
@huangboju Could you solve this?
Yeah, solved
Most helpful comment
section.removeAtIndex(rowIndex)section.removeFirst()section.removeLast()//or
section.remove(:at)in swift 3section[index] = nilmay work too.having a row is pretty simple to get its index. We can always get its section and the form by...
row.section?.formsection.indexOf(row)section.index(of:)in swift 3.and get its index is pretty simple as well.
Hope it helps.