add additional field example in the footer of addition cell

This commit is contained in:
Bob Sun 2017-02-21 01:06:03 +08:00
parent e40cadaec1
commit 2829e9145d
No known key found for this signature in database
GPG key ID: 1F86BA2052FED3B4
2 changed files with 9 additions and 4 deletions

View file

@ -19,6 +19,8 @@ class EditPasswordTableViewController: PasswordEditorTableViewController {
[[.type: PasswordEditorCellType.textViewCell, .title: "additions", .content: password!.getAdditionsPlainText()]],
]
sectionHeaderTitles = ["name", "password", "additions"].map {$0.uppercased()}
sectionFooterTitles = ["", "", "It is recommended to use \"key: value\" format to store additional fields as follows:\n url: https://www.apple.com\n username: passforios@gmail.com."]
super.viewDidLoad()
}