添加placehold颜色

This commit is contained in:
2026-02-03 20:51:48 +08:00
parent 61095a379f
commit 305326aa9a

View File

@@ -458,6 +458,8 @@
if (!_searchField) { if (!_searchField) {
_searchField = [[UITextField alloc] init]; _searchField = [[UITextField alloc] init];
_searchField.placeholder = KBLocalized(@"Search Role"); _searchField.placeholder = KBLocalized(@"Search Role");
_searchField.attributedPlaceholder = [[NSAttributedString alloc] initWithString:KBLocalized(@"Search Role")
attributes:@{NSForegroundColorAttributeName: [UIColor whiteColor]}];
_searchField.textColor = [UIColor whiteColor]; _searchField.textColor = [UIColor whiteColor];
_searchField.font = [UIFont systemFontOfSize:14]; _searchField.font = [UIFont systemFontOfSize:14];
_searchField.clearButtonMode = UITextFieldViewModeWhileEditing; _searchField.clearButtonMode = UITextFieldViewModeWhileEditing;