From aa6cf310afe21428e678c5aad2fe238be21dccdb Mon Sep 17 00:00:00 2001 From: Bob Sun Date: Sun, 22 Jan 2017 12:32:44 +0800 Subject: [PATCH] fix table view cell identifier warnings --- pass/Base.lproj/Main.storyboard | 106 +++++++++++++----------- pass/PasswordDetailViewController.swift | 5 +- 2 files changed, 60 insertions(+), 51 deletions(-) diff --git a/pass/Base.lproj/Main.storyboard b/pass/Base.lproj/Main.storyboard index 8003e77..562f0a9 100644 --- a/pass/Base.lproj/Main.storyboard +++ b/pass/Base.lproj/Main.storyboard @@ -52,7 +52,7 @@ - + @@ -65,15 +65,15 @@ - + - + - + - + - + - + - + - + - + @@ -151,7 +151,7 @@ - + @@ -164,11 +164,11 @@ - + - + - + - - - - - - - - - - + + + + + + + + + + + + + + @@ -250,7 +254,7 @@ - + @@ -263,11 +267,11 @@ - + - + - + - + @@ -363,23 +367,29 @@ - + + + + Lorem ipsum dolor sit er elit lamet, consectetaur cillium adipisicing pecu, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. Nam liber te conscient to factor tum poen legum odioque civiuda. + + + + + + + + + - + - + @@ -398,7 +408,7 @@ - + @@ -436,7 +446,7 @@ - + @@ -454,7 +464,7 @@ - + @@ -472,7 +482,7 @@ - + diff --git a/pass/PasswordDetailViewController.swift b/pass/PasswordDetailViewController.swift index ed6b38e..6e19078 100644 --- a/pass/PasswordDetailViewController.swift +++ b/pass/PasswordDetailViewController.swift @@ -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() } }