فهرست منبع

adding title to chatVC

Bastian van de Wetering 7 سال پیش
والد
کامیت
bc00afbee1
2فایلهای تغییر یافته به همراه5 افزوده شده و 4 حذف شده
  1. 2 2
      deltachat-ios/AppCoordinator.swift
  2. 3 2
      deltachat-ios/ChatViewController.swift

+ 2 - 2
deltachat-ios/AppCoordinator.swift

@@ -22,11 +22,11 @@ class AppCoordinator {
         settingsViewController.view.backgroundColor = UIColor.blue
         
         let contactTabbarItem = UITabBarItem(tabBarSystemItem: .contacts, tag: 0)
-        let chatTabbarItem = UITabBarItem(title: "Chat", image: nil, tag: 1)
+        let chatTabbarItem = UITabBarItem(title: "Chats", image: nil, tag: 1)
         let settingsTabbarItem = UITabBarItem(title: "Settings", image: nil, tag: 2)
         
         contactViewController.tabBarItem = contactTabbarItem
-        chatViewController.tabBarItem = chatTabbarItem
+        chatNavigationController.tabBarItem = chatTabbarItem
         settingsViewController.tabBarItem = settingsTabbarItem
         
         let tabBarController = UITabBarController()

+ 3 - 2
deltachat-ios/ChatViewController.swift

@@ -12,8 +12,9 @@ class ChatViewController: UIViewController {
 
     override func viewDidLoad() {
         super.viewDidLoad()
-
-        // Do any additional setup after loading the view.
+        self.navigationItem.title = "Chats"
+        //title = "Chats"
+        
     }