Explorar o código

Add more descriptive titles to editor screens

Tanner Bennett %!s(int64=6) %!d(string=hai) anos
pai
achega
2e868eba39

+ 2 - 2
Classes/Editing/FLEXFieldEditorViewController.m

@@ -36,14 +36,14 @@
     }
 
     FLEXFieldEditorViewController *editor = [self target:target];
-    editor.title = @"Property";
+    editor.title = [@"Property: " stringByAppendingString:property.name];
     editor.property = property;
     return editor;
 }
 
 + (instancetype)target:(id)target ivar:(nonnull FLEXIvar *)ivar {
     FLEXFieldEditorViewController *editor = [self target:target];
-    editor.title = @"Instance Variable";
+    editor.title = [@"Ivar: " stringByAppendingString:ivar.name];
     editor.ivar = ivar;
     return editor;
 }

+ 2 - 1
Classes/Editing/FLEXMethodCallingViewController.m

@@ -31,7 +31,8 @@
     self = [super initWithTarget:target];
     if (self) {
         self.method = method;
-        self.title = method.isInstanceMethod ? @"Method" : @"Class Method";
+        self.title = method.isInstanceMethod ? @"Method: " : @"Class Method: ";
+        self.title = [self.title stringByAppendingString:method.selectorString];
     }
 
     return self;

+ 1 - 0
Classes/ExplorerInterface/Tabs/FLEXTabsViewController.m

@@ -252,6 +252,7 @@
     cell.detailTextLabel.text = FLEXPluralString(tab.viewControllers.count, @"pages", @"page");
     
     if (!cell.tag) {
+        cell.textLabel.lineBreakMode = NSLineBreakByTruncatingTail;
         cell.textLabel.font = [UIFont preferredFontForTextStyle:UIFontTextStyleHeadline];
         cell.detailTextLabel.font = [UIFont preferredFontForTextStyle:UIFontTextStyleSubheadline];
         cell.tag = 1;