Просмотр исходного кода

Use UITableViewCellAccessoryNone instead of 0 in FLEX[Layer/View]Shortcuts

matrush лет назад: 5
Родитель
Сommit
a0b1caed54

+ 1 - 1
Classes/ObjectExplorers/Sections/Shortcuts/FLEXLayerShortcuts.m

@@ -19,7 +19,7 @@
                 return [FLEXImagePreviewViewController previewForLayer:layer];
                 return [FLEXImagePreviewViewController previewForLayer:layer];
             }
             }
             accessoryType:^UITableViewCellAccessoryType(CALayer *layer) {
             accessoryType:^UITableViewCellAccessoryType(CALayer *layer) {
-                return CGRectIsEmpty(layer.bounds) ? 0 : UITableViewCellAccessoryDisclosureIndicator;
+                return CGRectIsEmpty(layer.bounds) ? UITableViewCellAccessoryNone : UITableViewCellAccessoryDisclosureIndicator;
             }
             }
         ]
         ]
     ]];
     ]];

+ 2 - 2
Classes/ObjectExplorers/Sections/Shortcuts/FLEXViewShortcuts.m

@@ -70,7 +70,7 @@
                 return [FLEXObjectExplorerFactory explorerViewControllerForObject:controller];
                 return [FLEXObjectExplorerFactory explorerViewControllerForObject:controller];
             }
             }
             accessoryType:^UITableViewCellAccessoryType(id view) {
             accessoryType:^UITableViewCellAccessoryType(id view) {
-                return controller ? UITableViewCellAccessoryDisclosureIndicator : 0;
+                return controller ? UITableViewCellAccessoryDisclosureIndicator : UITableViewCellAccessoryNone;
             }
             }
         ],
         ],
         [FLEXActionShortcut title:@"Preview Image" subtitle:^NSString *(UIView *view) {
         [FLEXActionShortcut title:@"Preview Image" subtitle:^NSString *(UIView *view) {
@@ -81,7 +81,7 @@
             }
             }
             accessoryType:^UITableViewCellAccessoryType(UIView *view) {
             accessoryType:^UITableViewCellAccessoryType(UIView *view) {
                 // Disable preview if bounds are CGRectZero
                 // Disable preview if bounds are CGRectZero
-                return !CGRectIsEmpty(view.bounds) ? UITableViewCellAccessoryDisclosureIndicator : 0;
+                return !CGRectIsEmpty(view.bounds) ? UITableViewCellAccessoryDisclosureIndicator : UITableViewCellAccessoryNone;
             }
             }
         ]
         ]
     ]];
     ]];