SKStoreProductViewController display apps from developer

Viewed 2926

i'm using SKStoreProductViewController to implement "more apps" functionality, but when I tap on a product on the list, i'm getting only blank screen, there is also a warning in console:

Could not request view controller: Error Domain=_UIViewServiceInterfaceErrorDomain Code=2 "The operation couldn’t be completed. (_UIViewServiceInterfaceErrorDomain error 2.)"

this happens only on ios 7, in ios 6 it simply redirects to app store, here is my code:

SKStoreProductViewController *productVC = [[SKStoreProductViewController alloc] init];
productVC.delegate = self;
NSDictionary *productParameters = @{ SKStoreProductParameterITunesItemIdentifier :  <itunes developer ID>};
[productVC loadProductWithParameters:productParameters completionBlock:^(BOOL result, NSError *error) {
    if(error)
    {
       [[UIAlertView alloc] initWithTitle:[error localizedDescription]
                                                            message:nil
                                                           delegate:nil
                                                  cancelButtonTitle:@"Ok"
                                                  otherButtonTitles:nil, nil] show];


    }

    if (result )
    {
        [self presentViewController:productVC animated:NO completion:nil];
    }

}];

i think this is ios 7 bug, any help greatly appricated

2 Answers
Related