UISearchBar *searchBar = [[UISearchBaralloc] initWithFrame:CGRectMake(0,0, 210, 44)];
serchBar.searchBarStyle = UISearchBarStyleMinimal;serchBar.delegate = self;
serchBar.placeholder = @"输入搜索内容";
// Get the instance of the UITextField of the search bar
UITextField *searchField = [searchBar valueForKey:@"_searchField"];
// Change search bar text color
searchField.textColor = [UIColorblackColor];
// Change the search bar placeholder text color
[searchFieldsetValue:[UIColorblackColor]forKeyPath:@"_placeholderLabel.textColor"];