When trying to remove an unknown type from an NSMutableArray, I'm unsure of how to assign an item to a variable to be removed. I'm able to drill down to the string property of that type but unsure of how to remove the entire object.
Right now the error I'm getting is:
Use of undeclared identifier 'item'
NSMutableArray * skProducts = response.products;
for (SKProduct * skProduct in skProducts) {
NSLog(@"Found product: %@ %@ %0.2f",
skProduct.productIdentifier,
skProduct.localizedTitle,
skProduct.price.floatValue);
if ( [skProduct.productIdentifier isEqualToString:@"com.eboticon.Eboticon.baepack1"] ) {
// do found
[skProducts removeObject: item];
} else {
// do not found
}