소스 검색

update group members count

Alla Reinsch 7 년 전
부모
커밋
2b12a6cb8a
1개의 변경된 파일8개의 추가작업 그리고 1개의 파일을 삭제
  1. 8 1
      deltachat-ios/NewGroupViewController.swift

+ 8 - 1
deltachat-ios/NewGroupViewController.swift

@@ -12,12 +12,19 @@ class NewGroupViewController: UITableViewController {
 
     let contactCellReuseIdentifier = "xyz"
     var contactIds: [Int] = Utils.getContactIds()
-    var contactIdsForGroup: Set<Int> = []
+    var contactIdsForGroup: Set<Int> = [] {
+        didSet {
+            let c = contactIdsForGroup.count
+           self.navigationItem.prompt = "\(c) members and me"
+        }
+    }
     
     override func viewDidLoad() {
         super.viewDidLoad()
         self.title = "New Group"
+        self.navigationItem.prompt = "0 members and me"
         tableView.register(ContactCell.self, forCellReuseIdentifier: contactCellReuseIdentifier)
+        navigationController?.navigationBar.prefersLargeTitles = false
     }
 
     override func didReceiveMemoryWarning() {