Browse Source

dev offline view

Marino Faggiana 6 years ago
parent
commit
7aaa7d1f82
1 changed files with 14 additions and 0 deletions
  1. 14 0
      iOSClient/Offline/NCOffline.swift

+ 14 - 0
iOSClient/Offline/NCOffline.swift

@@ -682,6 +682,20 @@ class NCOffline: UIViewController ,UICollectionViewDataSource, UICollectionViewD
     
     override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
         
+        var photoDataSource = [tableMetadata]()
+//        let test = sectionDatasource.allFileID.map { $0 }
+        
+        for fileID: String in sectionDatasource.allFileID as! [String] {
+            let metadata = sectionDatasource.allRecordsDataSource.object(forKey: fileID) as! tableMetadata
+            if metadata.typeFile == k_metadataTypeFile_image {
+                photoDataSource.append(metadata)
+            }
+        }
+        
+        if let destinationNC = segue.destination as? UINavigationController {
+            let destinationVC = destinationNC.topViewController as! CCDetail
+            
+        }
     }
     
     // MARK: UTILITY