2013-02-21 111 views
0

在我的新应用程序中,我使用MKStoreKit删除广告。它的购买方面工作,但就恢复功能而言,没有任何工作!我已经正确实现所有的框架和MKStoreKit文件,但我得到的错误:MKStoreKit恢复非消费品购买

No visible @interface for 'MKStoreManager' declares the selector 'restorePreviousTransactions' 

,我在我的恢复IBAction为使用的代码是:

[[MKStoreManager sharedManager] restorePreviousTransactions]; 

但它只是给我这个错误! 我正在使用最新版本的MKStoreKit可通过Github获得。 可能任何人有任何想法?

回答

0

你可以试试这个。

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

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

    }];