Fix #57.
Casting cell class to parent cell class will trigger the crash.
This commit is contained in:
parent
f573be9ee0
commit
5dd741f6fa
1 changed files with 1 additions and 1 deletions
|
|
@ -34,7 +34,7 @@ class AddPasswordTableViewController: PasswordEditorTableViewController {
|
|||
return false
|
||||
}
|
||||
// check name
|
||||
let nameCell = tableView.cellForRow(at: IndexPath(row: 0, section: 0)) as! ContentTableViewCell
|
||||
let nameCell = tableView.cellForRow(at: IndexPath(row: 0, section: 0)) as! TextFieldTableViewCell
|
||||
if nameCell.getContent()!.isEmpty {
|
||||
let alertTitle = "Cannot Add Password"
|
||||
let alertMessage = "Please fill in the name."
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue