fix table view cell identifier warnings

This commit is contained in:
Bob Sun 2017-01-22 12:32:44 +08:00
parent ccb7391740
commit aa6cf310af
No known key found for this signature in database
GPG key ID: 1F86BA2052FED3B4
2 changed files with 60 additions and 51 deletions

View file

@ -11,7 +11,7 @@ import SwiftyUserDefaults
class PasswordDetailViewController: UIViewController {
@IBOutlet weak var passwordLabel: UILabel!
@IBOutlet weak var passwordTextView: UITextView!
var passwordEntity: PasswordEntity?
override func viewDidLoad() {
@ -30,11 +30,10 @@ class PasswordDetailViewController: UIViewController {
let decryptedData = try PasswordStore.shared.pgp.decryptData(encryptedData, passphrase: Defaults[.pgpKeyPassphrase])
let plain = String(data: decryptedData, encoding: .ascii) ?? ""
print(plain)
passwordLabel.text = plain
passwordTextView.text = plain
} catch let error as NSError {
print(error.debugDescription)
}
passwordLabel.sizeToFit()
}
}