浏览代码

fix : MWPhotoBrowser images

Marino Faggiana 6 年之前
父节点
当前提交
c383d8a07d

+ 0 - 23
iOSClient/Images.xcassets/offline.imageset/Contents.json

@@ -1,23 +0,0 @@
-{
-  "images" : [
-    {
-      "idiom" : "universal",
-      "filename" : "offline.png",
-      "scale" : "1x"
-    },
-    {
-      "idiom" : "universal",
-      "filename" : "offline@2x.png",
-      "scale" : "2x"
-    },
-    {
-      "idiom" : "universal",
-      "filename" : "offline@3x.png",
-      "scale" : "3x"
-    }
-  ],
-  "info" : {
-    "version" : 1,
-    "author" : "xcode"
-  }
-}

二进制
iOSClient/Images.xcassets/offline.imageset/offline.png


二进制
iOSClient/Images.xcassets/offline.imageset/offline@2x.png


二进制
iOSClient/Images.xcassets/offline.imageset/offline@3x.png


+ 0 - 21
iOSClient/Images.xcassets/offlineTitle.imageset/Contents.json

@@ -1,21 +0,0 @@
-{
-  "images" : [
-    {
-      "idiom" : "universal",
-      "scale" : "1x"
-    },
-    {
-      "idiom" : "universal",
-      "filename" : "offlineTitle@2x.png",
-      "scale" : "2x"
-    },
-    {
-      "idiom" : "universal",
-      "scale" : "3x"
-    }
-  ],
-  "info" : {
-    "version" : 1,
-    "author" : "xcode"
-  }
-}

二进制
iOSClient/Images.xcassets/offlineTitle.imageset/offlineTitle@2x.png


+ 2 - 2
iOSClient/Library/MWPhotoBrowser/MWPhotoBrowser.m

@@ -170,11 +170,11 @@ static void * MWVideoPlayerObservation = &MWVideoPlayerObservation;
     
     //TWS
     if (self.displayDeleteButton) {
-        _deleteButton = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemTrash target:self action:@selector(deleteButtonPressed:)];
+        _deleteButton = [[UIBarButtonItem alloc] initWithImage:[UIImage imageNamed:@"delete"] style:UIBarButtonItemStylePlain target:self action:@selector(deleteButtonPressed:)];
     }
     
     if (self.displayActionButton) {
-        _actionButton = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemAction target:self action:@selector(actionButtonPressed:)];
+        _actionButton = [[UIBarButtonItem alloc] initWithImage:[UIImage imageNamed:@"openFile"] style:UIBarButtonItemStylePlain target:self action:@selector(actionButtonPressed:)];
     }
     
     if (self.displayShareButton) {