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

Add missing accessory button to scenes in windows screen

Tanner Bennett лет назад: 6
Родитель
Сommit
2093913b17
1 измененных файлов с 5 добавлено и 3 удалено
  1. 5 3
      Classes/ExplorerInterface/FLEXWindowManagerController.m

+ 5 - 3
Classes/ExplorerInterface/FLEXWindowManagerController.m

@@ -163,6 +163,9 @@
 
 
 - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
 - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
     UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:kFLEXDetailCell forIndexPath:indexPath];
     UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:kFLEXDetailCell forIndexPath:indexPath];
+    cell.accessoryType = UITableViewCellAccessoryDetailButton;
+    cell.textLabel.lineBreakMode = NSLineBreakByTruncatingTail;
+    
     UIWindow *window = nil;
     UIWindow *window = nil;
     NSString *subtitle = nil;
     NSString *subtitle = nil;
     
     
@@ -184,11 +187,10 @@
             }
             }
     }
     }
     
     
-    cell.accessoryType = UITableViewCellAccessoryDetailButton;
-    cell.textLabel.lineBreakMode = NSLineBreakByTruncatingTail;
     cell.textLabel.text = window.description;
     cell.textLabel.text = window.description;
     cell.detailTextLabel.text = [NSString
     cell.detailTextLabel.text = [NSString
-        stringWithFormat:@"Level: %@ — Root: %@", @(window.windowLevel), window.rootViewController
+        stringWithFormat:@"Level: %@ — Root: %@",
+        @((NSInteger)window.windowLevel), window.rootViewController.class
     ];
     ];
     
     
     return cell;
     return cell;