ios - StoreKit's SKStoreProductViewController leaving space between the nav bar and the view? -
i have subclass of uiviewcontroller shows skstoreproductviewcontroller
. view controller created ios 5 , not using auto-layout. problem when skstoreproductviewcontroller
presented, there's space between nav bar , actual content... if scroll view, segmented control (details/reviews/related) floats below nav bar (see images below, added mask images make problem more apparent).
since don't have access presented view controller i'm guessing has controller presents skstoreproductviewcontroller
. when user taps on button presents controller i've tried change/shift frame of view, i've done self.navigationcontroller.navigationbar.translucent = no;
nothing seems help.
has have had similar problem? ideas on how fix it?
it seems there's bug on uiappearance
protocol on ios 7. found people having (other) problems when using uiappearance
. using like:
[[uinavigationbar appearance] setbackgroundimage:image forbarmetrics:uibarmetricsdefault];
which works on ios 5, ios 6+ set background image directly on navigation bar:
[self.navigationcontroller.navigationbar setbackgroundimage:image forbarmetrics:uibarmetricsdefault];
it looks small difference, fixed problem.
Comments
Post a Comment