marinofaggiana 5 年之前
父节点
当前提交
e71e457bef
共有 2 个文件被更改,包括 6 次插入5 次删除
  1. 1 1
      Cartfile.resolved
  2. 5 4
      iOSClient/Main/CCMain.m

+ 1 - 1
Cartfile.resolved

@@ -16,7 +16,7 @@ github "krzyzanowskim/OpenSSL" "1.0.218"
 github "malcommac/SwiftRichString" "3.7.1"
 github "marinofaggiana/AFNetworking" "2967678c3e0e98c9b8d7e06222ad12d1f49c26f2"
 github "marinofaggiana/KTVHTTPCache" "2.0.2"
-github "marinofaggiana/XLForm" "6abc02c51ee8de1f0d1b165759232b94e199d4b8"
+github "marinofaggiana/XLForm" "eb9381ad8129f60402bf412250fb31b95a628a08"
 github "nextcloud/ios-communication-library" "229049eb830d2a4789d9e31f61b740f9cbe4d505"
 github "realm/realm-cocoa" "v4.4.1"
 github "rechsteiner/Parchment" "v1.7.0"

+ 5 - 4
iOSClient/Main/CCMain.m

@@ -150,10 +150,11 @@
     if (searchButton && [searchButton isKindOfClass:[UIButton class]]) {
         [searchButton setTitleColor:NCBrandColor.sharedInstance.brandText forState:UIControlStateNormal];
     }
-    UITextField *searchTextView = [self.searchController.searchBar valueForKey:@"searchField"];
-    if (searchTextView && [searchTextView isKindOfClass:[UITextField class]]) {
-        searchTextView.backgroundColor = NCBrandColor.sharedInstance.backgroundForm;
-        searchTextView.textColor = NCBrandColor.sharedInstance.textView;
+    UITextField *searchTextField = [self.searchController.searchBar valueForKey:@"searchField"];
+    if (searchTextField && [searchTextField isKindOfClass:[UITextField class]]) {
+        searchTextField.backgroundColor = NCBrandColor.sharedInstance.backgroundForm;
+        searchTextField.textColor = NCBrandColor.sharedInstance.textView;
+        searchTextField.delegate = self;
     }
     heightSearchBar = self.searchController.searchBar.frame.size.height;