我试图遵循这个教程来实现应用程序中的购买(productID :PBonnett.OEIC3.p)。
首先,我在MKStoreKitConfigs.h中添加了以下内容:
#define kKlimtPictureSetId @"PBonnet.TOEIC3.Package1"然后,我把我的产品在MKStoreKitConfigs.plist中添加到非消耗品类别中.
然后,我在AppDelegate.m中添加了以下内容:
[MKStoreManager sharedManager];然后,我添加了ViewDidLoad of the ViewController,在这里我想知道package1是否已经被购买了:
[MKStoreManager isFeaturePurchased:kKlimtPictureSetId];我知道错误:
Use of undeclared identifier `MKStoreManager`我尝试在我的ViewController中导入“appDelate.m”,但是找不到。
我不明白如何使用[MKStoreManager isFeaturePurchased:kKlimtPictureSetId];方法。它必须返回一个布尔值,但是我们如何访问它呢?
干杯
发布于 2014-02-06 16:01:34
将这一行添加到ViewController.h中
#import "MKStoreManager.h"发布于 2016-01-14 10:47:27
在v.6中
[MKStoreKit sharedKit isProductPurchased:@"you id"];
https://stackoverflow.com/questions/21607861
复制相似问题