From 6f1571fefa8a53958bdd3b428ba3aad523554855 Mon Sep 17 00:00:00 2001 From: Bob Sun Date: Sat, 1 Apr 2017 08:59:22 -0700 Subject: [PATCH] Fix a bug of otp cell introduced by polishing table view data structure --- pass/Controllers/PasswordDetailTableViewController.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pass/Controllers/PasswordDetailTableViewController.swift b/pass/Controllers/PasswordDetailTableViewController.swift index a3cce2c..b5590b9 100644 --- a/pass/Controllers/PasswordDetailTableViewController.swift +++ b/pass/Controllers/PasswordDetailTableViewController.swift @@ -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) } }