Any idea how to set the UISearchBar textfield's background color separately from the search bar's tintcolor?
[UINavigationBar appearanceWhenContainedInInstancesOfClasses:@[[XYNavigationController class]]].barTintColor = [UIColor redColor];
And even if you try:
[UITextField appearanceWhenContainedInInstancesOfClasses:@[[UISearchBar class], [XYNavigationController class], [UINavigationBar class]]].layer.backgroundColor = [UIColor orangeColor].CGColor;
[UITextField appearanceWhenContainedInInstancesOfClasses:@[[UISearchBar class], [XYNavigationController class], [UINavigationBar class]]].backgroundColor = [UIColor orangeColor];
[UITextField appearanceWhenContainedInInstancesOfClasses:@[[UISearchBar class], [XYNavigationController class], [UINavigationBar class]]].tintColor = [UIColor orangeColor];
the textfield's background color won't change to orange. Is this a bug or something different needs to be done?
Thanks.