Answer the question
In order to leave comments, you need to log in
How to set up In-App Purchases?
What settings do I need to make in iTunes Connect to make In-App Purchases work?
I created several payments, I'm trying to do the following:
- - (void)viewDidLoad
- {
- [superviewDidLoad];
- if ([SKPaymentQueue canMakePayments]) {
- [self requestProductData];
- } else {
- NSLog(@"none!");
- }
- }
- -(void) requestProductData {
- SKProductsRequest* request = ;
- request.delegate = self;
- [request start];
- [UIApplication sharedApplication].networkActivityIndicatorVisible = YES;
- }
- #pragma mark - StoreKit Delegate methods
- -(void)productsRequest:(SKProductsRequest *)request didReceiveResponse:(SKProductsResponse *)response {
- [UIApplication sharedApplication].networkActivityIndicatorVisible = NO;
- NSArray* myProduct = response.products;
- NSLog(@"length: %d", [myProduct count]);
- NSLog(@"my products: %@", myProduct);
- }
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question