Marino Faggiana vor 8 Jahren
Ursprung
Commit
ba8b5a799a
1 geänderte Dateien mit 18 neuen und 0 gelöschten Zeilen
  1. 18 0
      iOSClient/MenuAccount+ControlCenter/CCControlCenterActivity.m

+ 18 - 0
iOSClient/MenuAccount+ControlCenter/CCControlCenterActivity.m

@@ -110,6 +110,15 @@
 
 - (NSInteger)collectionView:(UICollectionView *)collectionView numberOfItemsInSection:(NSInteger)section
 {
+    /*
+    TableActivity *activity = [_sectionDataSource objectAtIndex:section];
+    
+    if ([activity.file length] > 0)
+        return 1;
+    else
+        return 0;
+    */
+    
     return 0;
 }
 
@@ -167,6 +176,15 @@
     UICollectionViewCell *cell = [collectionView dequeueReusableCellWithReuseIdentifier:@"cell" forIndexPath:indexPath];
     cell.backgroundColor = [UIColor clearColor];
     
+    TableActivity *activity = [_sectionDataSource objectAtIndex:indexPath.section];
+    
+    NSString *dir = [activity.file stringByDeletingLastPathComponent];
+    NSString *fileName = [activity.file lastPathComponent];
+    
+    if ([dir length] > 0 && [fileName length] > 0) {
+        
+    }
+    
     return cell;
 }