I want change this code
for (var i = tableView(self.tableView , numberOfRowsInSection: 0) - 1; i>0; i-=1 ) {
tableViewHeight = height + tableView(self.tableView, heightForRowAtIndexPath: NSIndexPath(forRow: i, inSection: 0) )
}
to Swift. I got an error at for.