Browse Source

use better comments to differentiate sections and rows

cyberta 5 năm trước cách đây
mục cha
commit
a17fec09da
1 tập tin đã thay đổi với 3 bổ sung2 xóa
  1. 3 2
      deltachat-ios/Controller/NewChatViewController.swift

+ 3 - 2
deltachat-ios/Controller/NewChatViewController.swift

@@ -165,7 +165,7 @@ class NewChatViewController: UITableViewController {
                 return cell
             }
             if row == 1 {
-                // new contact row
+                // scan QR code row
                 let cell: UITableViewCell
                 if let c = tableView.dequeueReusableCell(withIdentifier: "scanGroupCell") {
                     cell = c
@@ -192,6 +192,7 @@ class NewChatViewController: UITableViewController {
                 return cell
             }
         } else if section == 1 {
+            // import device contacts section
             if deviceContactAccessGranted {
                 let cell: ContactCell
                 if let c = tableView.dequeueReusableCell(withIdentifier: "contactCell") as? ContactCell {
@@ -213,7 +214,7 @@ class NewChatViewController: UITableViewController {
                 return cell
             }
         } else {
-            // section 2
+            // contact list section
             let cell: ContactCell
             if let c = tableView.dequeueReusableCell(withIdentifier: "contactCell") as? ContactCell {
                 cell = c