Well, then I had to resort to an unpleasant workaround to fix this problem. Although I always knew that this would be one way to do this, I did not want to resort to him because he feels dirty.
I subclassed the UINavigationController to something like CustomNavigationViewController and did not make any changes to it. In other words, this is an IS UINavigationController , but with a different name. Then I used:
[[UINavigationBar appearanceWhenContainedIn:[CustomNavigationViewController class], nil] set.... to set the appearance by applying it only to those navigation controllers that belong to my custom class. SKStoreProductViewController obviously does not apply to my custom class and therefore does not get a style for it.
This, in my opinion, is an unpleasant, unclean solution, but it works.
Mike.
Mackey18
source share