Fix a bug of otp cell introduced by polishing table view data structure

This commit is contained in:
Bob Sun 2017-04-01 08:59:22 -07:00
parent 8ea7da91d4
commit 6f1571fefa
No known key found for this signature in database
GPG key ID: 1F86BA2052FED3B4

View file

@ -268,7 +268,7 @@ class PasswordDetailTableViewController: UITableViewController, UIGestureRecogni
section = TableSection(type: .addition, header: "One Time Password")
section.item.append(TableCell(title: title, content: otp))
tableData.append(section)
oneTimePasswordIndexPath = IndexPath(row: 0, section: tableData.count)
oneTimePasswordIndexPath = IndexPath(row: 0, section: tableData.count - 1)
}
}