浏览代码

Merge pull request #1309 from deltachat/rename_back_btn

Rename back btn
cyBerta 4 年之前
父节点
当前提交
8bb39e6856
共有 2 个文件被更改,包括 1 次插入2 次删除
  1. 1 0
      deltachat-ios/Chat/ChatViewController.swift
  2. 0 2
      deltachat-ios/Controller/SettingsController.swift

+ 1 - 0
deltachat-ios/Chat/ChatViewController.swift

@@ -266,6 +266,7 @@ class ChatViewController: UITableViewController {
         tableView.keyboardDismissMode = .interactive
         tableView.contentInsetAdjustmentBehavior = .never
         navigationController?.setNavigationBarHidden(false, animated: false)
+        navigationItem.backButtonTitle = String.localized("chat")
 
         if !dcContext.isConfigured() {
             // TODO: display message about nothing being configured

+ 0 - 2
deltachat-ios/Controller/SettingsController.swift

@@ -244,8 +244,6 @@ internal final class SettingsViewController: UITableViewController, ProgressAler
     override func viewDidLoad() {
         super.viewDidLoad()
         title = String.localized("menu_settings")
-        let backButton = UIBarButtonItem(title: String.localized("menu_settings"), style: .plain, target: nil, action: nil)
-        navigationItem.backBarButtonItem = backButton
         documentInteractionController.delegate = self as? UIDocumentInteractionControllerDelegate
         tableView.rowHeight = UITableView.automaticDimension
     }