.h
@property (nonatomic, strong) NSMutableDictionary * products; //not synthesized in .m
.m
- (void)productsRequest:(SKProduct
It's not IAPProduct *product= NSMutableDictionary[NSArray.productIdentifier];
The type of skProduct
is SKProduct
, not NSArray
. The fast enumeration for (SKProduct * skProduct in skProducts)
loops through all elements in skProducts
as SKProduct
.
It's (to some extent) like using a loop with a counter doing:
//for (SKProduct * skProduct in skProducts)
for (int i=0; i