我收到一个错误:
不兼容的块指针类型将“void (^ )(NSString *_strong )”发送到“void (^)(NSString * _strong, NSData *__strong)”类型的参数
当我MKStoreKit 4.3
在我的应用程序中实现 onComplete 行时:
-(IBAction)purchaseFull {
[[MKStoreManager sharedManager] buyFeature:@"productID"
onComplete:^(NSString* purchasedFeature)
{
NSLog(@"Purchased: %@", purchasedFeature);
//purchaseBtn.hidden = YES;
}
onCancelled:^
{
NSLog(@"User Cancelled Transaction");
}];
}