I have StoreKit set up in my project and I can get product information from the app store fine, that’s all working.
What I’m now trying to do is add an SKProduct as an instance variable in a class of mine, as below:
#import <UIKit/UIKit.h>
#import <Foundation/Foundation.h>
@interface VideoCell : UITableViewCell
{
IBOutlet UILabel *title;
IBOutlet UILabel *description;
SKProduct *product;
}
@property (retain) IBOutlet UILabel *title;
@property (retain) IBOutlet UILabel *description;
@property (retain) SKProduct *product;
It works fine with just the IBOutlet variables but the SKProduct lines have errors, as follows:
Unknown type name 'SKProduct'
I’m confused because the class name auto-completes but doesn’t actually compile…
Any ideas?
It looks like you’re missing the import: