I'm trying to follow this tutorial to implement an In-App purchase (productID : PBonnet.TOEIC3.p.
First, I added in MKStoreKitConfigs.h :
#define kKlimtPictureSetId @"PBonnet.TOEIC3.Package1"
Then, I added my product in MKStoreKitConfigs.plist in non-consumable categorie.
Then, I added in my AppDelegate.m :
[MKStoreManager sharedManager];
Then, I added in the ViewDidLoad of the ViewController where I want to know if package1 has already been bought :
[MKStoreManager isFeaturePurchased:kKlimtPictureSetId];
I get the error :
Use of undeclared identifier `MKStoreManager`
I've tried to import "appdelegate.m" in my ViewController but it's not found.
I don't get how the method [MKStoreManager isFeaturePurchased:kKlimtPictureSetId];
has to be used. It has to return a boolean value but how can we access to it ?
Cheers
将此行添加到您的ViewController.h
:
#import "MKStoreManager.h"
in the v.6
[[MKStoreKit sharedKit] isProductPurchased:@"you id"];
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.