Browse Source

输入要查询的文件名称-灰字

huangxiaodong 16 hours ago
parent
commit
dca6c4bd78

+ 3 - 3
创维盒子/code/NAS/search/searchBarSecondTypeView.m

@@ -55,10 +55,10 @@
     }];
     
     //搜索TF
-    NSString *titleStr = NSLocalizedString(@"Search_nas_title",nil);
+    NSString *tipStr = NSLocalizedString(@"Search_bar_tip",nil);
     _searchTF = [[UITextField alloc] init];
     _searchTF.backgroundColor = [UIColor clearColor];
-    _searchTF.placeholder = titleStr;
+    _searchTF.placeholder = tipStr;
     _searchTF.font = [UIFont systemFontOfSize:12];
     _searchTF.delegate = self;
     [whiteBgView addSubview:_searchTF];
@@ -71,7 +71,7 @@
     }];
     
     //右边搜索有按钮
-    //NSString *titleStr = NSLocalizedString(@"Search_nas_title",nil);
+    NSString *titleStr = NSLocalizedString(@"Search_nas_title",nil);
     _searchButton = [[UIButton alloc] init];
     _searchButton.backgroundColor = [UIColor clearColor];
     [_searchButton setTitle:titleStr forState:UIControlStateNormal];

+ 2 - 2
创维盒子/code/NAS/search/searchBarView.m

@@ -50,7 +50,7 @@
     
     //左边搜索文字
     UILabel *SearchLabel = [[UILabel alloc] init];
-    NSString *titleStr = NSLocalizedString(@"Search_nas_title",nil);
+    NSString *titleStr = NSLocalizedString(@"Search_bar_tip",nil);
     SearchLabel.text = titleStr;
     SearchLabel.font = [UIFont systemFontOfSize:12];
     SearchLabel.textColor = [UIColor hwColor:@"#7C8196" alpha:1.0];
@@ -64,7 +64,7 @@
     
     //右边搜索按钮
     UIButton *searchBut = [[UIButton alloc] init];
-    [searchBut setTitle:titleStr forState:UIControlStateNormal];
+    [searchBut setTitle:NSLocalizedString(@"Search_nas_title",nil) forState:UIControlStateNormal];
     [searchBut setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal];
     searchBut.titleLabel.font = [UIFont systemFontOfSize:12.0];
     searchBut.backgroundColor = [UIColor hwColor:@"#01B7EA" alpha:1.0];

+ 1 - 0
创维盒子/code/zh-Hans.lproj/Localizable.strings

@@ -664,6 +664,7 @@
 
 //1.4.5
 "Search_nas_title"      = "搜索";
+"Search_bar_tip"      = "输入要查询的文件名称";
 "Search_Total_result"      = "搜索结果";
 "Search_nodata_tip"      = "暂无搜索结果~";
 "cloudPhone_restart_box_title"      = "重启盒子";