Polish code of AboutTableViewController

This commit is contained in:
Bob Sun 2017-03-02 15:36:23 +08:00
parent 43b71f2704
commit 853ea547e2
No known key found for this signature in database
GPG key ID: 1F86BA2052FED3B4

View file

@ -39,11 +39,9 @@ class AboutTableViewController: BasicStaticTableViewController {
return nil return nil
} }
override func tableView(_ tableView: UITableView, viewForHeaderInSection section: Int) -> UIView? { override func tableView(_ tableView: UITableView, titleForHeaderInSection section: Int) -> String? {
if section == 1 { if section == 1 {
let view = UITableViewHeaderFooterView() return "Acknowledgements".uppercased()
view.textLabel?.text = "Acknowledgements".uppercased()
return view
} }
return nil return nil
} }