- android - RelativeLayout 背景可绘制重叠内容
- android - 如何链接 cpufeatures lib 以获取 native android 库?
- java - OnItemClickListener 不起作用,但 OnLongItemClickListener 在自定义 ListView 中起作用
- java - Android 文件转字符串
我在 Appstore 中有一款 iPhone 游戏,我最近尝试使用最新的 Xcode 上传更新版本,但被拒绝了,因为 inApp 购买不能在仅 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 1001:
[self callPurchaseId:IAP1 amount:IAP_AMT_1];
break;
case 1002:
[self callPurchaseId:IAP2 amount:IAP_AMT_2];
break;
case 1003:
[self callPurchaseId:IAP3 amount:IAP_AMT_3];
break;
case 1004:
[self callPurchaseId:IAP4 amount:IAP_AMT_4];
break;
case 1005:
[self callPurchaseId:IAP5 amount:IAP_AMT_5];
break;
case 1006:
[self callPurchaseId:IAP6 amount:IAP_AMT_6];
break;
default:
break;
}
}
-(void) viewWillAppear:(BOOL)animated{
[super viewWillAppear:animated];
NSNumberFormatter* nf = [[NSNumberFormatter alloc] init];
nf.usesGroupingSeparator = YES;
nf.groupingSize = 3;
((UILabel*)[self.view viewWithTag:2001]).text = [NSString stringWithFormat:@"%@ Coins", [nf stringFromNumber:[NSNumber numberWithInteger:IAP_AMT_1]]];
((UILabel*)[self.view viewWithTag:2002]).text = [NSString stringWithFormat:@"%@ Coins", [nf stringFromNumber:[NSNumber numberWithInteger:IAP_AMT_2]]];
((UILabel*)[self.view viewWithTag:2003]).text = [NSString stringWithFormat:@"%@ Coins", [nf stringFromNumber:[NSNumber numberWithInteger:IAP_AMT_3]]];
((UILabel*)[self.view viewWithTag:2004]).text = [NSString stringWithFormat:@"%@ Coins", [nf stringFromNumber:[NSNumber numberWithInteger:IAP_AMT_4]]];
((UILabel*)[self.view viewWithTag:2005]).text = [NSString stringWithFormat:@"%@ Coins", [nf stringFromNumber:[NSNumber numberWithInteger:IAP_AMT_5]]];
((UILabel*)[self.view viewWithTag:2006]).text = [NSString stringWithFormat:@"%@ Coins", [nf stringFromNumber:[NSNumber numberWithInteger:IAP_AMT_6]]];
[nf release];
}
- (void)requestProUpgradeProductData
{
NSLog(@"called productsRequest");
[UIView setAnimationDuration:0.5];
[UIView setAnimationDelegate:self];
[UIView setAnimationDidStopSelector:@selector(fadeOut:finished:context:)];
viewLoading.alpha = 0.9;
[UIView commitAnimations];
loadingtext.text = @"Connecting to Store";
if([cost1000.text isEqual:@"0.00"]){
NSSet *productIdentifiers = [NSSet setWithObjects:IAP1, IAP2, IAP3, IAP4, IAP5, IAP6, nil];
SKProductsRequest *productsRequest = [[SKProductsRequest alloc] initWithProductIdentifiers:productIdentifiers];
productsRequest.delegate = self;
[productsRequest start];
}else{
[UIView setAnimationDuration:0.5];
[UIView setAnimationDelegate:self];
[UIView setAnimationDidStopSelector:@selector(fadeOut:finished:context:)];
viewLoading.alpha = 0.0;
[UIView commitAnimations];
}
}
- (void)productsRequest:(SKProductsRequest *)request didReceiveResponse:(SKProductsResponse *)response
{
NSString *sym = @"";
NSArray *items = response.products;
for(SKProduct *itemproduct in items)
{
NSLog(@"Product title: %@ - %@" , itemproduct.localizedTitle, itemproduct.priceAsString);
//NSLog(@"Product description: %@" , item.localizedDescription);
//NSLog(@"Product price: " , ;
NSLog(@"Product id: %@" , itemproduct.productIdentifier);
if([itemproduct.productIdentifier isEqual:IAP1]){
cost1000.text = [sym stringByAppendingString:[NSString stringWithFormat:@"%@", itemproduct.priceAsString]];
}else if([itemproduct.productIdentifier isEqual:IAP2]){
cost3200.text = [sym stringByAppendingString:[NSString stringWithFormat:@"%@", itemproduct.priceAsString]];
}else if([itemproduct.productIdentifier isEqual:IAP3]){
cost8000.text = [sym stringByAppendingString:[NSString stringWithFormat:@"%@", itemproduct.priceAsString]];
}else if([itemproduct.productIdentifier isEqual:IAP4]){
cost20000.text = [sym stringByAppendingString:[NSString stringWithFormat:@"%@", itemproduct.priceAsString]];
}else if([itemproduct.productIdentifier isEqual:IAP5]){
cost80000.text = [sym stringByAppendingString:[NSString stringWithFormat:@"%@", itemproduct.priceAsString]];
}else if([itemproduct.productIdentifier isEqual:IAP6]){
cost200000.text = [sym stringByAppendingString:[NSString stringWithFormat:@"%@", itemproduct.priceAsString]];
}
}
for (NSString *invalidProductId in response.invalidProductIdentifiers)
{
NSLog(@"Invalid product id: %@" , invalidProductId);
error = @"YES";
}
if([error isEqual:@"YES"]){
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Payments Error Occured" message:@"Could not read payment information from Apple In-App Servers. Please try again later" delegate:nil cancelButtonTitle:@"Ok" otherButtonTitles:nil, nil];
[alert show];
[alert release];
[self dismissViewControllerAnimated:YES completion:nil];
error = @"NO";
}
// finally release the reqest we alloc/init’ed in requestProUpgradeProductData
//[productsRequest release];
[UIView setAnimationDuration:0.5];
[UIView setAnimationDelegate:self];
[UIView setAnimationDidStopSelector:@selector(fadeOut:finished:context:)];
viewLoading.alpha = 0.0;
[UIView commitAnimations];
}
//
// removes the transaction from the queue and posts a notification with the transaction result
//
- (void)finishTransaction:(SKPaymentTransaction *)transaction wasSuccessful:(BOOL)wasSuccessful
{
// remove the transaction from the payment queue.
[[SKPaymentQueue defaultQueue] finishTransaction:transaction];
if (wasSuccessful)
{
#ifdef kURL_VERIFY_PURCHASE_RECEIPT
NSString *jsonObjectString = [CommonUtilities encode:(uint8_t *)transaction.transactionReceipt.bytes length:transaction.transactionReceipt.length];
////NSLog(jsonObjectString);
[CommonUtilities encryptString:[CommonUtilities md5:jsonObjectString]:@"b"];
[UIView setAnimationDuration:0.5];
[UIView setAnimationDelegate:self];
[UIView setAnimationDidStopSelector:@selector(fadeOut:finished:context:)];
viewLoading.alpha = 0.9;
[UIView commitAnimations];
//loadingtext.text = @"Purchase Completing";
loadingtext.text = @"Completing Transaction";
NSString *httpBodyString=[[NSString alloc] initWithFormat:@"receipt=%@&userid=%@",jsonObjectString, [CommonUtilities decryptString:@"username"]];
NSString *urlString=kURL_VERIFY_PURCHASE_RECEIPT;
NSURL *url=[[NSURL alloc] initWithString:urlString];
[urlString release];
NSMutableURLRequest *urlRequest=[NSMutableURLRequest requestWithURL:url];
[url release];
NSString *postLength = [NSString stringWithFormat:@"%d", [httpBodyString length]];
[urlRequest setValue:postLength forHTTPHeaderField:@"Content-Length"];
[urlRequest setValue:@"application/x-www-form-urlencoded" forHTTPHeaderField:@"Content-Type"];
[urlRequest setHTTPMethod:@"POST"];
[urlRequest setHTTPBody:[httpBodyString dataUsingEncoding:NSISOLatin1StringEncoding]];
[httpBodyString release];
[UIApplication sharedApplication].networkActivityIndicatorVisible = YES;
connection = [[NSURLConnection alloc] initWithRequest:urlRequest delegate:self];
responseData=[[NSMutableData data] retain];
#else
int addCoins = [[CommonUtilities decryptString:@"c"] intValue];
int currentCoins = [[CommonUtilities decryptString:@"coins"] intValue];
int newCoins = addCoins + currentCoins;
[CommonUtilities encryptString:[NSString stringWithFormat:@"%i", newCoins]:@"coins"];
// due to sync issues we add + 1 to xp so sync to server completes
NSLog(@"transaction complete");
[UIView setAnimationDuration:0.5];
[UIView setAnimationDelegate:self];
[UIView setAnimationDidStopSelector:@selector(fadeOut:finished:context:)];
viewLoading.alpha = 0.0;
[UIView commitAnimations];
[UIApplication sharedApplication].networkActivityIndicatorVisible = NO;
#endif
}
else
{
NSLog(@"Purchase failed");
// send out a notification for the failed transaction
NSDictionary *userInfo = [NSDictionary dictionaryWithObjectsAndKeys:transaction, @"transaction" , nil];
//[[NSNotificationCenter defaultCenter] postNotificationName:kInAppPurchaseManagerTransactionFailedNotification object:self userInfo:userInfo];
[UIView setAnimationDuration:0.5];
[UIView setAnimationDelegate:self];
[UIView setAnimationDidStopSelector:@selector(fadeOut:finished:context:)];
viewLoading.alpha = 0.0;
[UIView commitAnimations];
}
}
//
// called when the transaction was successful
//
- (void)completeTransaction:(SKPaymentTransaction *)transaction
{
[self finishTransaction:transaction wasSuccessful:YES];
}
//
// called when a transaction has failed
//
- (void)failedTransaction:(SKPaymentTransaction *)transaction
{
if (transaction.error.code != SKErrorPaymentCancelled)
{
// error!
[self finishTransaction:transaction wasSuccessful:NO];
[UIView setAnimationDuration:0.5];
[UIView setAnimationDelegate:self];
[UIView setAnimationDidStopSelector:@selector(fadeOut:finished:context:)];
viewLoading.alpha = 0.0;
[UIView commitAnimations];
NSLog(@"error transaction");
}
else
{
// this is fine, the user just cancelled, so don’t notify
[[SKPaymentQueue defaultQueue] finishTransaction:transaction];
[UIView setAnimationDuration:0.5];
[UIView setAnimationDelegate:self];
[UIView setAnimationDidStopSelector:@selector(fadeOut:finished:context:)];
viewLoading.alpha = 0.0;
[UIView commitAnimations];
NSLog(@"cancelled transaction");
}
}
//
// called when the transaction status is updated
//
- (void)paymentQueue:(SKPaymentQueue *)queue updatedTransactions:(NSArray *)transactions
{
for (SKPaymentTransaction *transaction in transactions)
{
switch (transaction.transactionState)
{
case SKPaymentTransactionStatePurchased:
[self completeTransaction:transaction];
break;
case SKPaymentTransactionStateFailed:
[self failedTransaction:transaction];
break;
default:
break;
}
}
}
#pragma mark -
- (IBAction)closeCoins:(id)sender{
[self dismissViewControllerAnimated:YES completion:nil];
}
- (void)viewDidLoad
{
[[SKPaymentQueue defaultQueue] addTransactionObserver:self];
webView.opaque = NO;
webView.backgroundColor = [UIColor clearColor];
webView.dataDetectorTypes = UIDataDetectorTypeLink;
jackpotView.opaque = NO;
jackpotView.backgroundColor = [UIColor clearColor];
//[self didLoad];
NSString *filename = @"store.jpg";
CGRect screenRect = [[UIScreen mainScreen] bounds];
if (screenRect.size.width == 568.0f) {
filename = [filename stringByReplacingOccurrencesOfString:@".jpg" withString:@"-568h@2x.jpg"];
[self.bkg setBounds:CGRectMake(0, 0, screenRect.size.width, screenRect.size.height)];
NSLog(@"YAGO - changing background: %@", filename);
}
if ( UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad ) {
filename = @"store-ipad.jpg";
}
self.bkg.image = [UIImage imageNamed:filename];
viewLoading.alpha = 0.0;
viewNoInternet.alpha = 0.0;
// reachability
[self tryConnect:nil];
if([SKPaymentQueue canMakePayments]){
////NSLog(@"can make payments");
[self requestProUpgradeProductData];
}else{
////NSLog(@"cannot make payments");
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Payments Disabled" message:@"In-App Purchases are disabled on this device." delegate:nil cancelButtonTitle:@"Ok" otherButtonTitles:nil, nil];
[alert show];
[alert release];
[self dismissViewControllerAnimated: YES completion:nil];
}
CGSize result = [[UIScreen mainScreen] bounds].size;
CGFloat scale = [UIScreen mainScreen].scale;
result = CGSizeMake(result.width * scale, result.height * scale);
if(result.height == 960){
bar.frame = CGRectMake(0,0,(result.height / 2),32);
}else if(result.height == 1136){
bar.frame = CGRectMake(0,0,(result.height / 2),32);
}else if(result.height == 1024){
bar.frame = CGRectMake(0,0,result.height,44);
}else if (result.height == 2048){
bar.frame = CGRectMake(0,0,result.height/2,44);
}
else{
bar.frame = CGRectMake(0,0,(result.height),32);
}
int fontSize = 16;
if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad){
//[[UILabel appearance] setFont:[UIFont fontWithName:@"Myriad Web Pro" size:28.0]];
}else{
//[[UILabel appearance] setFont:[UIFont fontWithName:@"Myriad Web Pro" size:12.0]];
fontSize = 12;
}
UIBarButtonItem *backButton = [[[UIBarButtonItem alloc] initWithTitle:@"Close" style:UIBarButtonItemStyleBordered target:nil action:nil] autorelease];
UIImage *buttonBack32 = [[UIImage imageNamed:@"NavigationBackButton"]
resizableImageWithCapInsets:UIEdgeInsetsMake(0, 10, 0, 5)];
[[UIBarButtonItem appearance] setBackButtonBackgroundImage:buttonBack32 forState:UIControlStateNormal barMetrics:UIBarMetricsDefault];
[[UIBarButtonItem appearance] setTitleTextAttributes:
[NSDictionary dictionaryWithObjectsAndKeys:
[UIColor whiteColor],
UITextAttributeTextColor,
[UIColor colorWithRed:0.0 green:0.0 blue:0.0 alpha:0.8],
UITextAttributeTextShadowColor,
[NSValue valueWithUIOffset:UIOffsetMake(0, -1)],
UITextAttributeTextShadowOffset,
[UIFont fontWithName:@"Helvetica-Bold" size:fontSize],
UITextAttributeFont,
nil]
forState:UIControlStateNormal];
self.navigationItem.backBarButtonItem = backButton;
}
-(void)viewWillDisappear:(BOOL)animated{
NSLog(@"coins has gone");
[[NSNotificationCenter defaultCenter] postNotificationName:@"updateCoins" object:self];
[[NSNotificationCenter defaultCenter] postNotificationName:@"sortCoins" object:self];
if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad){
//[[UILabel appearance] setFont:[UIFont fontWithName:@"Myriad Web Pro" size:20.0]];
}else{
//[[UILabel appearance] setFont:[UIFont fontWithName:@"Myriad Web Pro" size:10.0]];
}
}
- (NSUInteger)supportedInterfaceOrientations {
return UIInterfaceOrientationMaskLandscape;
}
- (BOOL) shouldAutorotate {
return YES;
}
- (BOOL)shouldAutorotateToInterfaceOrientation: (UIInterfaceOrientation)interfaceOrientation {
// Return YES for supported orientations
if(interfaceOrientation == UIInterfaceOrientationLandscapeLeft || interfaceOrientation == UIInterfaceOrientationLandscapeRight){
return YES;
}else{
return NO;
}
}
- (void)dealloc {
[[SKPaymentQueue defaultQueue] removeTransactionObserver:self];
[self.bkg release];
[super dealloc];
}
#pragma mark for server side validation (no customer support)
// these connection-related methods are only here to help in case you ever decide to implement
// server-side validation of purchase receipts
// - in this case, you'll also need to define your own kURL_VERIFY_PURCHASE_RECEIPT and figure out the existing validation protocol (I can't provide you with support on this one, it's code written by someone else)
- (void)connection:(NSURLConnection *)connection didReceiveResponse:(NSURLResponse *)response {
[responseData setLength:0];
//NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse*)response;
if ([response respondsToSelector:@selector(allHeaderFields)]) {
//NSDictionary *dictionary = [httpResponse allHeaderFields];
//NSLog([dictionary description]);
}
}
- (void)connection:(NSURLConnection *)connection didReceiveData:(NSData *)data {
[responseData appendData:data];
//NSString *a = [[NSString alloc] initWithData:data encoding:NSUTF8StringEncoding];
//NSLog(@"Data: %@", a);
}
- (void)connection:(NSURLConnection *)connection didFailWithError:(NSError *)error {
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"No Connection" message:@"You are not connected to the internet or data. Please connect and try again." delegate:nil cancelButtonTitle:@"Cancel" otherButtonTitles:nil, nil];
[alert show];
[alert release];
}
- (void)connectionDidFinishLoading:(NSURLConnection *)connection {
NSString *responseString = [[NSString alloc] initWithData:responseData encoding:NSUTF8StringEncoding];
//////NSLog(responseString);
NSString *gKey = [CommonUtilities decryptString:@"b"];
NSString *result = [CommonUtilities base64Decrypt:responseString:gKey];
NSLog(@"%@",result);
int r = [result intValue];
////NSLog(@"r int: %i", r);
if(r == 1){
int addCoins = [[CommonUtilities decryptString:@"c"] intValue];
int currentCoins = [[CommonUtilities decryptString:@"coins"] intValue];
int newCoins = addCoins + currentCoins;
[CommonUtilities encryptString:[NSString stringWithFormat:@"%i", newCoins]:@"coins"];
// due to sync issues we add + 1 to xp so sync to server completes
NSLog(@"transaction complete");
}else{
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Receipt Failed" message:@"Please make the purchase again using a vaild iTunes account" delegate:nil cancelButtonTitle:@"Cancel" otherButtonTitles:nil, nil];
[alert show];
[alert release];
}
[self dismissViewControllerAnimated:YES completion:nil];
[UIView setAnimationDuration:0.5];
[UIView setAnimationDelegate:self];
[UIView setAnimationDidStopSelector:@selector(fadeOut:finished:context:)];
viewLoading.alpha = 0.0;
[UIView commitAnimations];
[UIApplication sharedApplication].networkActivityIndicatorVisible = NO;
}
@end
我不知道这段代码有什么问题。我在 xcode 调试日志中得到的唯一信息是“Purchase failed”。任何帮助将不胜感激。
最佳答案
原来问题不在我这边。由于 sandbox.itunes.apple.com 没有 ipv6 地址,因此它适用于 DNS64(或 NAT64 或其他任何东西:D。我对这些东西了解不多)而不是在真正的 ipv6 网络上。
不知道为什么他们第一次拒绝了我的应用程序,但在我重新提交后它被批准了。
关于iOS IAP 不适用于仅 ipv6 网络,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37725762/
IO 设备如何知道属于它的内存中的值在memory mapped IO 中发生了变化? ? 例如,假设内存地址 0 专用于保存 VGA 设备的背景颜色。当我们更改 memory[0] 中的值时,VGA
我目前正在开发一个使用Facebook sdk登录(通过FBLoginView)的iOS应用。 一切正常,除了那些拥有较旧版本的facebook的人。 当他们按下“使用Facebook登录”按钮时,他
假设我有: this - is an - example - with some - dashesNSRange将使用`rangeOfString:@“-”拾取“-”的第一个实例,但是如果我只想要最后
Card.io SDK提供以下详细信息: 卡号,有效期,月份,年份,CVV和邮政编码。 如何从此SDK获取国家名称。 - (void)userDidProvideCreditCardInfo:(Car
iOS 应用程序如何从网络服务下载图片并在安装过程中将它们安装到用户的 iOS 设备上?可能吗? 最佳答案 您无法控制应用在用户设备上的安装,因此无法在安装过程中下载其他数据。 只需在安装后首次启动应
我曾经开发过一款企业版 iOS 产品,我们公司曾将其出售给大型企业,供他们的员工使用。 该应用程序通过 AppStore 提供,企业用户获得了公司特定的配置文件(包含应用程序配置文件)以启用他们有权使
我正在尝试将 Card.io SDK 集成到我的 iOS 应用程序中。我想为 CardIO ui 做一个简单的本地化,如更改取消按钮标题或“在此保留信用卡”提示文本。 我在 github 上找到了这个
我正在使用 CardIOView 和 CardIOViewDelegate 类,没有可以设置为 YES 的 BOOL 来扫描 collectCardholderName。我可以看到它在 CardIOP
我有一个集成了通话工具包的 voip 应用程序。每次我从我的 voip 应用程序调用时,都会在 native 电话应用程序中创建一个新的最近通话记录。我在 voip 应用程序中也有自定义联系人(电话应
iOS 应用程序如何知道应用程序打开时屏幕上是否已经有键盘?应用程序运行后,它可以接收键盘显示/隐藏通知。但是,如果应用程序在分屏模式下作为辅助应用程序打开,而主应用程序已经显示键盘,则辅助应用程序不
我在模拟器中收到以下错误: ImageIO: CGImageReadSessionGetCachedImageBlockData *** CGImageReadSessionGetCachedIm
如 Apple 文档所示,可以通过 EAAccessory Framework 与经过认证的配件(由 Apple 认证)进行通信。但是我有点困惑,因为一些帖子告诉我它也可以通过 CoreBluetoo
尽管现在的调试器已经很不错了,但有时找出应用程序中正在发生的事情的最好方法仍然是古老的 NSLog。当您连接到计算机时,这样做很容易; Xcode 会帮助弹出日志查看器面板,然后就可以了。当您不在办公
在我的 iOS 应用程序中,我定义了一些兴趣点。其中一些有一个 Kontakt.io 信标的名称,它绑定(bind)到一个特定的 PoI(我的意思是通常贴在信标标签上的名称)。现在我想在附近发现信标,
我正在为警报提示创建一个 trigger.io 插件。尝试从警报提示返回数据。这是我的代码: // Prompt + (void)show_prompt:(ForgeTask*)task{
您好,我是 Apple iOS 的新手。我阅读并搜索了很多关于推送通知的文章,但我没有发现任何关于 APNS 从 io4 到 ios 6 的新更新的信息。任何人都可以向我提供 APNS 如何在 ios
UITabBar 的高度似乎在 iOS 7 和 8/9/10/11 之间发生了变化。我发布这个问题是为了让其他人轻松找到答案。 那么:在 iPhone 和 iPad 上的 iOS 8/9/10/11
我想我可以针对不同的 iOS 版本使用不同的 Storyboard。 由于 UI 的差异,我将创建下一个 Storyboard: Main_iPhone.storyboard Main_iPad.st
我正在写一些东西,我将使用设备的 iTunes 库中的一部分音轨来覆盖 2 个视频的组合,例如: AVMutableComposition* mixComposition = [[AVMutableC
我创建了一个简单的 iOS 程序,可以顺利编译并在 iPad 模拟器上运行良好。当我告诉 XCode 4 使用我连接的 iPad 设备时,无法编译相同的程序。问题似乎是当我尝试使用附加的 iPad 时
我是一名优秀的程序员,十分优秀!