我正在尝试在应用购买中添加产品 ID。但在下面的代码中,我手动添加它。我怎样才能从一个添加它plist
?
我的代码:
@implementation RageIAPHelper
+ (RageIAPHelper *)sharedInstance {
static dispatch_once_t once;
static RageIAPHelper * sharedInstance;
dispatch_once(&once, ^{
NSSet * productIdentifiers = [NSSet setWithObjects:
@"greatminds.assamkarttestingdays",
@"greatminds.newgirlinthecity",
@"greatminds.newlights",
nil];
sharedInstance = [[self alloc] initWithProductIdentifiers:productIdentifiers];
});
return sharedInstance;
}