我在我的项目中设置了StoreKit,我可以很好地从应用商店获取产品信息,这一切都很好用。
我现在尝试做的是在我的一个类中添加一个SKProduct作为实例变量,如下所示:
#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;它只适用于IBOutlet变量,但SKProduct行有错误,如下所示:
Unknown type name 'SKProduct'我很困惑,因为类名会自动完成,但实际上并没有编译...
有什么想法吗?
发布于 2012-05-22 23:40:09
看起来你错过了导入:
#import <StoreKit/StoreKit.h>https://stackoverflow.com/questions/10705324
复制相似问题