Hey everyone,
I've been looking all over the internet to find a solution to this problem and everything I find doesn't work for me.
I want to change the text color of the UITextField and placeHolderLabel in a UISearchController to white since I have a dark themed application and the standard black text color is difficult to read.
Currently, for testing purposes I am changing the text color via the private call "_searchField" and "_placeholderlabel" changing it that way, but I've read that Apple may reject the application if they catch you doing that. The other suggestion that I have some by is this:
Which would go in my AppDelegate.m file. This does not work for me. Maybe I'm doing something wrong?
Anyone else have a solution to this?
I've been looking all over the internet to find a solution to this problem and everything I find doesn't work for me.
I want to change the text color of the UITextField and placeHolderLabel in a UISearchController to white since I have a dark themed application and the standard black text color is difficult to read.
Currently, for testing purposes I am changing the text color via the private call "_searchField" and "_placeholderlabel" changing it that way, but I've read that Apple may reject the application if they catch you doing that. The other suggestion that I have some by is this:
Code:
[[UITextField appearanceWhenContainedIn:[UISearchBar class], nil] setTextColor:[UIColor whiteColor]];
Which would go in my AppDelegate.m file. This does not work for me. Maybe I'm doing something wrong?
Anyone else have a solution to this?