add erase data function

This commit is contained in:
Bob Sun 2017-02-07 16:45:14 +08:00
parent 373c6500f0
commit e2a2774664
No known key found for this signature in database
GPG key ID: 1F86BA2052FED3B4
6 changed files with 173 additions and 12 deletions

View file

@ -105,6 +105,10 @@ class SettingsTableViewController: UITableViewController {
override func viewDidLoad() {
super.viewDidLoad()
}
override func viewWillAppear(_ animated: Bool) {
super.viewWillAppear(animated)
if Defaults[.pgpKeyID] == "" {
pgpKeyTableViewCell.detailTextLabel?.text = "Not Set"
} else {