I want to sell products inside my app. I receive my products properly but i can't display them through the NSNotificationCenter. Here is my code :
- (void)productsRequest:(SKProductsRequest *)request didReceiveResponse:(SKProductsResponse *)response {
NSLog(@"Received products results...");
self.products = response.products;
self.request = nil;
NSLog(@"%@", self.products); // I got the products (SKProduct)
[[NSNotificationCenter defaultCenter] postNotificationName:kProductsLoadedNotification object:_products];
}
I tried to display a simple notification too, but it doesn't work either:
[[NSNotificationCenter defaultCenter] postNotificationName:@"my_notification" object:nil];
I also tried this
Can't you help me to figure this out?