StoreKit's SKStoreProductViewController leaving space between the nav bar and the view?

眉间皱痕 提交于 2019-12-06 04:28:59

It seems like there's a bug on the UIAppearance protocol on iOS 7. I found people having (other) problems when using UIAppearance. I was using something like:

[[UINavigationBar appearance] setBackgroundImage:image forBarMetrics:UIBarMetricsDefault];

which works on iOS 5, but for iOS 6+ I set the background image directly on the navigation bar:

[self.navigationController.navigationBar setBackgroundImage:image forBarMetrics:UIBarMetricsDefault];

It looks like a small difference, but it fixed my problem.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!