소스 검색

use cells with disclosureIndicator for gallery and documents

cyberta 5 년 전
부모
커밋
8345ad0b19
2개의 변경된 파일16개의 추가작업 그리고 20개의 파일을 삭제
  1. 8 10
      deltachat-ios/Controller/ContactDetailViewController.swift
  2. 8 10
      deltachat-ios/Controller/GroupChatDetailViewController.swift

+ 8 - 10
deltachat-ios/Controller/ContactDetailViewController.swift

@@ -49,19 +49,17 @@ class ContactDetailViewController: UITableViewController {
         return cell
     }()
 
-    private lazy var galleryCell: ActionCell = {
-        let cell = ActionCell()
-        cell.actionTitle = String.localized("gallery")
-        cell.actionColor = SystemColor.blue.uiColor
-        cell.selectionStyle = .none
+    private lazy var galleryCell: UITableViewCell = {
+        let cell = UITableViewCell(style: .value1, reuseIdentifier: nil)
+        cell.textLabel?.text = String.localized("gallery")
+        cell.accessoryType = .disclosureIndicator
         return cell
     }()
 
-    private lazy var documentsCell: ActionCell = {
-        let cell = ActionCell()
-        cell.actionTitle = String.localized("documents")
-        cell.actionColor = SystemColor.blue.uiColor
-        cell.selectionStyle = .none
+    private lazy var documentsCell: UITableViewCell = {
+        let cell = UITableViewCell(style: .value1, reuseIdentifier: nil)
+        cell.textLabel?.text = String.localized("documents")
+        cell.accessoryType = .disclosureIndicator
         return cell
     }()
 

+ 8 - 10
deltachat-ios/Controller/GroupChatDetailViewController.swift

@@ -93,19 +93,17 @@ class GroupChatDetailViewController: UIViewController {
         return cell
     }()
 
-    private lazy var galleryCell: ActionCell = {
-        let cell = ActionCell()
-        cell.actionTitle = String.localized("gallery")
-        cell.actionColor = UIColor.systemBlue
-        cell.selectionStyle = .none
+    private lazy var galleryCell: UITableViewCell = {
+        let cell = UITableViewCell(style: .value1, reuseIdentifier: nil)
+        cell.textLabel?.text = String.localized("gallery")
+        cell.accessoryType = .disclosureIndicator
         return cell
     }()
 
-    private lazy var documentsCell: ActionCell = {
-        let cell = ActionCell()
-        cell.actionTitle = String.localized("documents")
-        cell.actionColor = UIColor.systemBlue
-        cell.selectionStyle = .none
+    private lazy var documentsCell: UITableViewCell = {
+        let cell = UITableViewCell(style: .value1, reuseIdentifier: nil)
+        cell.textLabel?.text = String.localized("documents")
+        cell.accessoryType = .disclosureIndicator
         return cell
     }()