Ver código fonte

Add • indexes for quickly scrolling to explorer sections

Tanner Bennett 6 anos atrás
pai
commit
3226cbc8c4

+ 6 - 0
Classes/ObjectExplorers/FLEXObjectExplorerViewController.m

@@ -309,6 +309,12 @@
     return UITableViewAutomaticDimension;
 }
 
+- (NSArray<NSString *> *)sectionIndexTitlesForTableView:(UITableView *)tableView {
+    return [self.sections flex_mapped:^id(FLEXExplorerSection *obj, NSUInteger idx) {
+        return @"⦁";
+    }];
+}
+
 
 #pragma mark - UITableViewDelegate