Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SKStoreproductviewcontroller truncated in landscape mode

I've just added SKStoreProductViewController and presented it from my own UIViewController. If I rotate device to landscape mode - only header fits the width, other parts are truncated

....
NSDictionary *parameters = @{SKStoreProductParameterITunesItemIdentifier:[NSNumber numberWithInteger:[productID integerValue]]};

    [self.storeViewController loadProductWithParameters:parameters
                                   completionBlock:^(BOOL result, NSError *error) {
                                       if (result)
                                       {
                                           [presentingViewController presentModalViewController:self.storeViewController
                                                                                       animated:YES];
                                       }
                                       handler(result);
                                   }];

enter image description here

enter image description here

Is it possible to adapt "product page" in landscape mode, to make it looks good?

Env: iPhone 4S IOS 6.0.1

like image 970
Injectios Avatar asked Dec 27 '12 10:12

Injectios


1 Answers

Yes, it's very poorly implemented. I'm actually surprised that this has managed to pass any QA whatsoever on Apple's part.

When you press on one of the screenshots, it displays a, let's say, "detail" screen, where the scroll view still cuts off the images and the images themselves aren't centered on the screen, which leads to them being half obscured.

I've logged a bug in Apple's bug reporting system and I encourage you to do the same, as that'll increase the chance that Apple actually fixes it.

https://developer.apple.com/bugreporter/

like image 199
Andrew Avatar answered Oct 30 '22 17:10

Andrew