我在Appstore中有一款iPhone游戏,我最近尝试使用最新的Xcode上传更新的版本,但它被拒绝了,因为inApp-buying不支持ipv6网络.它与ipv4网络一起工作正常.
//
// ViewController.m
//
NSMutableArray * arrayOfSection;
NSMutableArray * sectionHeaders;
NSString *error;
#import "CoinsController.h"
#import "NSString+SBJSON.h"
#import <CommonCrypto/CommonDigest.h>
@implementation CoinsController
@synthesize bkg;
-(void) callPurchaseId:(NSString*)iapId amount:(NSUInteger)ncoins{
SKPayment *payment = [SKPayment paymentWithProductIdentifier:iapId];
//[[SKPaymentQueue defaultQueue] addTransactionObserver:self];
[[SKPaymentQueue defaultQueue] addPayment:payment];
[UIView setAnimationDuration:0.5];
[UIView setAnimationDelegate:self];
[UIView setAnimationDidStopSelector:@selector(fadeOut:finished:context:)];
viewLoading.alpha = 0.9;
[UIView commitAnimations];
loadingtext.text = @"Processing Purchase";
NSLog(@"Processing Purhcase");
// currentGem = [NSString stringWithFormat:@"vegas%@", @"80k"];
[CommonUtilities encryptString:[NSString stringWithFormat:@"%lu", (unsigned long)ncoins]:@"c"];
NSLog(@"Processing");
}
- (IBAction)purchaseCoins:(id)sender{
UIButton *button = (UIButton *)sender;
NSLog(@"%li", (long)button.tag);
switch (button.tag) {
case …
Run Code Online (Sandbox Code Playgroud)