瀏覽代碼

clear code

Marino Faggiana 7 年之前
父節點
當前提交
b7be40b8bc
共有 2 個文件被更改,包括 4 次插入4 次删除
  1. 1 0
      iOSClient/AppDelegate.m
  2. 3 4
      iOSClient/Main/CCMain.m

+ 1 - 0
iOSClient/AppDelegate.m

@@ -1548,6 +1548,7 @@
         NSLog(@"[LOG] Re upload file : %@", metadata.fileName);
     }
 }
+
 #pragma --------------------------------------------------------------------------------------------
 #pragma mark ===== Open CCUploadFromOtherUpp  =====
 #pragma --------------------------------------------------------------------------------------------

+ 3 - 4
iOSClient/Main/CCMain.m

@@ -153,6 +153,7 @@
     self.searchController.delegate = self;
     self.searchController.searchBar.delegate = self;
     
+    // Actie Delegate Networking
     [CCNetworking sharedNetworking].delegate = self;
     
     // Custom Cell
@@ -370,12 +371,10 @@
         [appDelegate settingThemingColorBrand];
         
         // Load photo datasorce
-        if (appDelegate.activePhotos)
-            [appDelegate.activePhotos reloadDatasource];
+        [appDelegate.activePhotos reloadDatasource];
         
         // remove all of detail
-        if (appDelegate.activeDetail)
-            [appDelegate.activeDetail removeAllView];
+        [appDelegate.activeDetail removeAllView];
         
         // remove all Notification Messages
         [appDelegate.listOfNotifications removeAllObjects];