Quellcode durchsuchen

1.修改iOS Apex Mobile Result Field Setting Title。

Pen Li vor 7 Jahren
Ursprung
Commit
6d3b7fbcea
1 geänderte Dateien mit 14 neuen und 9 gelöschten Zeilen
  1. 14 9
      Apex Mobile/Apex Mobile/CustomizeFieldViewController.m

+ 14 - 9
Apex Mobile/Apex Mobile/CustomizeFieldViewController.m

@@ -208,10 +208,19 @@
     UILabel *titleLabel = [[UILabel alloc] initWithFrame:CGRectMake(10, 0, 90, 22)];
     titleLabel.textColor=[UIColor whiteColor];
     titleLabel.backgroundColor = [UIColor clearColor];
-    if(section==0)
-        titleLabel.text=NSLocalizedString(@"display_items", nil);
-    else
-        titleLabel.text=NSLocalizedString(@"hide_items", nil);
+
+    if (self.forNewResult) {
+        if(section==0)
+            titleLabel.text = @"Additional Fields To Display";
+        else
+            titleLabel.text = @"Addition Fields";
+    } else {
+        if(section==0)
+            titleLabel.text=NSLocalizedString(@"display_items", nil);
+        else
+            titleLabel.text=NSLocalizedString(@"hide_items", nil);
+    }
+    
     [titleLabel sizeToFit];
     [myView addSubview:titleLabel];
 
@@ -247,11 +256,7 @@
             return NO;
         }
         
-        if (indexPath.section == 0 && [tableView numberOfRowsInSection:indexPath.section] == 1) {
-            return NO;
-        } else {
-            return YES;
-        }
+        return YES;
         
     } else {