فهرست منبع

added Next button to group creation

Alla Reinsch 7 سال پیش
والد
کامیت
d861fc5203
1فایلهای تغییر یافته به همراه8 افزوده شده و 1 حذف شده
  1. 8 1
      deltachat-ios/NewGroupViewController.swift

+ 8 - 1
deltachat-ios/NewGroupViewController.swift

@@ -15,18 +15,25 @@ class NewGroupViewController: UITableViewController {
     var contactIdsForGroup: Set<Int> = [] {
     var contactIdsForGroup: Set<Int> = [] {
         didSet {
         didSet {
             let c = contactIdsForGroup.count
             let c = contactIdsForGroup.count
-           self.navigationItem.prompt = "\(c) members and me"
+            self.navigationItem.prompt = "\(c) members and me"
         }
         }
     }
     }
     
     
+    @objc func didPressGroupCreationNextButton() {
+        print("Jetzt geht es weiter")
+    }
+    
     override func viewDidLoad() {
     override func viewDidLoad() {
         super.viewDidLoad()
         super.viewDidLoad()
         self.title = "New Group"
         self.title = "New Group"
         self.navigationItem.prompt = "0 members and me"
         self.navigationItem.prompt = "0 members and me"
         tableView.register(ContactCell.self, forCellReuseIdentifier: contactCellReuseIdentifier)
         tableView.register(ContactCell.self, forCellReuseIdentifier: contactCellReuseIdentifier)
         navigationController?.navigationBar.prefersLargeTitles = false
         navigationController?.navigationBar.prefersLargeTitles = false
+        let groupCreationNextButton = UIBarButtonItem(title: "Next", style: .done, target: self, action: #selector(didPressGroupCreationNextButton))
+        navigationItem.rightBarButtonItem = groupCreationNextButton
     }
     }
 
 
+
     override func didReceiveMemoryWarning() {
     override func didReceiveMemoryWarning() {
         super.didReceiveMemoryWarning()
         super.didReceiveMemoryWarning()
     }
     }