2012-04-13 68 views
2

我有一个iphone应用程序,我试图用mkstorekit实现订阅4.1。一切工作正常,除了这个代码。我成功添加了订阅视图。但它根本没有被调用。有人能帮助我吗?MKStoreKit4.1购买功能什么都不做?

[[MKStoreManager sharedManager] buyFeature:kFeatureAId onComplete:^(NSString* purchasedFeature) 
    { 
        //isPurchased = YES; 
     NSLog(@"Purchased: in commmmpletion %@", purchasedFeature); 
     [self showsubscribedview]; 

    } onCancelled:^ { 

     //purchas = YES; 
     NSLog(@" User Cancelled Transaction"); 
     return; 

    }]; 

回答

-1

您是否关注本文? http://blog.mugunthkumar.com/coding/using-mkstorekit-in-your-apps/

我想你还没有注册你的购买。

+0

雅,我没有。当我去下一个标签,然后回来我测试 – hacker 2012-04-13 10:42:09

+0

如果([MKStoreManager sharedManager] isSubscriptionActive:kFeatureAId]){//解锁我 \t //的NSLog(@“,从出现%@ “,[[MKStoreManager sharedManager] isSubscriptionActive:kFeatureAId]); [self showsubscribedview]; \t } 这样的,它是在那个时候 – hacker 2012-04-13 10:42:47

+0

但不幸的是,当我在设备正在测试它不getting.when ahowing正确的观点我来到了这个观点是展示退订视图中的每个时间。但我我试图购买它显示我已经订阅这个 – hacker 2012-04-13 10:44:57