storekit - iOS: How to put a button on the top of SKStoreProductViewController -


i want put custom button on top of skstoreproductviewcontroller. tried below did not work. wondering if give me advices.

skstoreproductviewcontroller *storeviewcontroller = [[skstoreproductviewcontroller alloc] init];  uibarbuttonitem *sharebutton = [[uibarbuttonitem alloc] initwithbarbuttonsystemitem:uibarbuttonsystemitemaction                                                                              target:self                                                                              action:@selector(showsharedialog)]; storeviewcontroller.navigationitem.rightbarbuttonitem = sharebutton;  storeviewcontroller.delegate = self; [self presentviewcontroller:storeviewcontroller animated:yes completion:^() {     [storeviewcontroller loadproductwithparameters:@{skstoreproductparameteritunesitemidentifier:appid}                                    completionblock:^(bool result, nserror *error) {}]; }]; 


Comments

Popular posts from this blog

c# - SelectList with Dictionary, add values to the Dictionary after it's assigned to SelectList -

how can i manage url using .htaccess in php? -

ios - I get the error Property '...' not found on object of type '...' -