Iphone MKStoreKit恢复非消耗性采购

Iphone MKStoreKit恢复非消耗性采购,iphone,xcode,mkstorekit,Iphone,Xcode,Mkstorekit,在我的新应用程序中,我使用MKStoreKit删除广告。它的购买端可以工作,但就恢复功能而言,什么都不起作用!我已经正确地实现了所有框架和MKStoreKit文件,但是我得到了错误: No visible @interface for 'MKStoreManager' declares the selector 'restorePreviousTransactions' 我在restore iAction中使用的代码是: [[MKStoreManager sharedManager] rest

在我的新应用程序中,我使用MKStoreKit删除广告。它的购买端可以工作,但就恢复功能而言,什么都不起作用!我已经正确地实现了所有框架和MKStoreKit文件,但是我得到了错误:

No visible @interface for 'MKStoreManager' declares the selector 'restorePreviousTransactions'
我在restore iAction中使用的代码是:

[[MKStoreManager sharedManager] restorePreviousTransactions];
但它只是给了我这个错误! 我使用的是通过Github提供的最新版本的MKStoreKit。 有人有什么想法吗?

你可以试试这个

    [[MKStoreManager sharedManager] restorePreviousTransactionsOnComplete:^{
        NSLog(@"Restored");

    } onError:^(NSError *error) {
        NSLog(@"Reseting purchases failed because of error: %@", [error description]);

    }];