In a project that I am working on together, I saw that my colleague used the following code to access / change non-public properties UISearchBar:
something = [self.searchBar valueForKey:@"_searchField"];
[searchField setValue:grayColor forKeyPath:@"_placeholderLabel.textColor"];
...
I'm not sure Apple uses a private API. Will this lead to the failure of the App Store? I saw some questions regarding the use of a private API, but could not find the answer to this exact question.
source
share