Skip to content

Commit

Permalink
修改titile 设置时机
Browse files Browse the repository at this point in the history
修改titile 设置时机
  • Loading branch information
HurryQin committed Mar 7, 2017
1 parent a1f04e2 commit bfcad47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion HFileBrowser/HFileBrowser.swift
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ public class HFileBrowser: UIViewController {
}else{
self.path = NSHomeDirectory()
}
navigationItem.title = FileHelper().getFileName(path)
do{
try files = NSFileManager.defaultManager().contentsOfDirectoryAtPath(path)
reloadTableView()
Expand All @@ -51,7 +52,6 @@ public class HFileBrowser: UIViewController {

public override func viewDidLoad() {
super.viewDidLoad()
navigationItem.title = FileHelper().getFileName(self.path)
tableView.delegate = self
tableView.dataSource = self
self.view.addSubview(tableView)
Expand Down

0 comments on commit bfcad47

Please sign in to comment.