Question

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

Was it helpful?

Solution

Add this line to your ViewController.h:

#import "MKStoreManager.h"

OTHER TIPS

in the v.6

[[MKStoreKit sharedKit] isProductPurchased:@"you id"];

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top