I have UISearchBar in UITableView as a table header. When I push the UISearchBar for start searching, this method is being triggered>
UISearchBar
UITableView
Try setting text field tint color using UIAppearance
[[UITextField appearanceWhenContainedIn:[UISearchBar class], nil] setTintColor: [UIColor darkGrayColor]];