set back button

This commit is contained in:
Bob Sun 2017-02-01 23:15:29 +08:00
parent c08d73523c
commit cca1bf83e0
No known key found for this signature in database
GPG key ID: 1F86BA2052FED3B4
2 changed files with 3 additions and 3 deletions

View file

@ -10,7 +10,7 @@
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
<scenes>
<!--All-->
<!--Password Store-->
<scene sceneID="2hn-YS-T8K">
<objects>
<tableViewController id="vGH-8E-Zez" customClass="PasswordsTableViewController" customModule="pass" customModuleProvider="target" sceneMemberID="viewController">
@ -46,7 +46,8 @@
<outlet property="delegate" destination="vGH-8E-Zez" id="EG1-wX-VRt"/>
</connections>
</tableView>
<navigationItem key="navigationItem" title="All" id="2I8-8c-JEA">
<navigationItem key="navigationItem" title="Password Store" id="2I8-8c-JEA">
<barButtonItem key="backBarButtonItem" title="Back" id="OCO-gr-goM"/>
<barButtonItem key="rightBarButtonItem" systemItem="refresh" id="JLS-BH-aaR">
<connections>
<action selector="refreshPasswords:" destination="vGH-8E-Zez" id="nZd-1L-MFr"/>

View file

@ -16,7 +16,6 @@ class PasswordDetailViewController: UIViewController {
override func viewDidLoad() {
super.viewDidLoad()
let encryptedDataURL = URL(fileURLWithPath: "\(Globals.shared.documentPath)/\(passwordEntity!.rawPath!)")
let fm = FileManager.default
if fm.fileExists(atPath: encryptedDataURL.path){