فهرست منبع

option search

Marino Faggiana 8 سال پیش
والد
کامیت
fd6e7b6adb
1فایلهای تغییر یافته به همراه2 افزوده شده و 1 حذف شده
  1. 2 1
      iOSClient/Main/CCMain.m

+ 2 - 1
iOSClient/Main/CCMain.m

@@ -1983,7 +1983,8 @@
 - (void)searchBar:(UISearchBar *)searchBar selectedScopeButtonIndexDidChange:(NSInteger)selectedScope
 - (void)searchBar:(UISearchBar *)searchBar selectedScopeButtonIndexDidChange:(NSInteger)selectedScope
 {
 {
     NSString *title = [self.searchController.searchBar.scopeButtonTitles objectAtIndex:selectedScope];
     NSString *title = [self.searchController.searchBar.scopeButtonTitles objectAtIndex:selectedScope];
-    
+    self.searchController.searchBar.placeholder = title;
+
     if ([title isEqualToString:NSLocalizedString(@"_search_this_folder_",nil)])
     if ([title isEqualToString:NSLocalizedString(@"_search_this_folder_",nil)])
         _depth = @"0";
         _depth = @"0";