Tag: ipad

付款交易状态失败

我正在尝试使用PhoneGap插件在应用程序中购买,它是https://github.com/phonegap/phonegap-plugins/tree/master/iPhone/InAppPurchaseManager 但在沙箱testing我得到以下错误plugins.inAppPurchaseManager.updatedTransactionCallback.apply(plugins.inAppPurchaseManager,[“PaymentTransactionStateFailed”,0,“无法连接到iTunes Store”,“”,“”,“”]) 然后应用程序被击中…任何人都可以帮助我这个?

从cordova html页面(cordova)加载保存在iOS App Documents目录中的图像?

我已经构build了一个应用程序,必须在iOS,Android和Windows Phone上运行。 除iOS之外,所有工作都很好。 我的应用程序使用相机拍摄照片,调整图像大小并保存图像。 在iOS上,这些图像被保存到正在被删除的应用程序的tmp目录中,所以现在我将图像保存到Documents文件夹中。 然后我把这个图像的path保存到我的sqlite数据库。 在我的html页面上,我使用url引用文件,例如 无功/移动/应用/ GUID-HERE /文档/ imageName.jpg 现在看来,当我在xCode重build我的应用程序,应用程序guid被改变,所以我以前保存的所有文件引用,现在是无效的。 所以 我可以从我的HTML页面相对引用文档文件夹吗? 要么 我可以停止我的应用程序更改此GUID?

如何在加载视图时隐藏tabbar动作?

我有一个iphone应用程序中,我调用webservice后,添加视图在视图内有一个加载视图。但当视图加载某人点击我的tabbar项目应用程序崩溃。我需要有该tabbar行动被隐藏,直到视图被加载。我不想隐藏tabbar,只有行动,谁能知道如何做到这一点? 谢谢。

如何在UIImageView中从左向右创buildanimation淡入淡出(alpha渐变)

如何从左到右在UIImageView中创buildanimation淡入淡出。 从左到右我的意思是alpha渐变,不能从左到右移动。 谢谢你的帮助 喜欢这个

在应用程序启动时通过splitviewcontroller呈现模态视图控制器

由于需要将UISplitViewController设置为rootviewcontroller,因此我试图在应用程序启动时以模态方式呈现viewcontroller,以充当用户的login/欢迎屏幕。 显然,我的AppDelegate.m中的下面的代码应该做的IOS 6的技巧: #import "AppDelegate.h" #import "WelcomeViewController.h" @implementation AppDelegate – (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { // Override point for customization after application launch. WelcomeViewController *modalWelcomeView = [[WelcomeViewController alloc] initWithNibName:@"Welcome" bundle:nil]; [modalWelcomeView setModalPresentationStyle:UIModalPresentationFullScreen]; [self.splitViewController presentViewController:modalWelcomeView animated:NO Completion:nil]; return YES; } 但是我得到一个“物业'splitViewController'找不到types'AppDelegate'的对象上面的行return YES; 。 我担心我在做一些愚蠢的事情 有什么build议么? 非常感谢。

石英绘图与纹理

我想绘制没有开放的gl,但使用纹理。 我已经尝试过,但是每当我用纹理绘制线条颜色时,它会像通常那样产生硬边缘。 如何让自然的stream苏边缘(我有一个stream苏的纹理)? 我希望它像素描专业的人。 谢谢。 UIImage* image = [UIImage imageNamed:@"texture"]; UIColor* color = [UIColor colorWithPatternImage:image]; CGContextSetStrokeColorWithColor(context, color.CGColor); CGContextStrokePath(context);

MGSplitViewController与所有github补丁?

我有兴趣使用MGSplitViewController,但似乎有当前的错误,特别是当在tabbarController中使用。 我看到在github上有好几个提交的补丁。 有没有办法把所有这些补丁的文件? 还是有人有一个分支,他们正在更新所有的新补丁? 非常感谢。

资产目录中的横向与纵向背景图像

我有一个用例,似乎陷入资产目录和大小类别之间的裂缝。 我的通用应用程序需要横向和纵向不同的全屏幕背景图像,横向仅支持iPad和iPhone 6。 由于我无法将横向图像添加到新图像集的资产目录,因此我目前的解决scheme如下所示(支持iOS 7和8): // permit landscape mode only for iPads & iPhone 6 (would prefer to use size classes, but…?) override func shouldAutorotate() -> Bool { let size = view.frame.size let maxv = max(size.width, size.height) return ((maxv > 700.0) || (maxv == 512.0)) ? true : false } // this will be triggered […]

当键盘显示工作,除了当ipad转身时,移动对话框

模式对话框在键盘出现时向上移动,在键盘消失时向下移动。 一切都很好,直到我旋转iPad。 除了标准以外的其他任何方向都行不通。 当iPad被翻转时,当键盘出现时,模式对话框向下移动,而不是在键盘消失而不是向下时向上和向上。 这是我用来定位模式对话框时,键盘出现/消失的代码。 – (void)textFieldDidBeginEditing:(UITextField *)textField { self.view.superview.frame = CGRectMake(self.view.superview.frame.origin.x, 140, self.view.superview.frame.size.width, self.view.superview.frame.size.height); } }]; } -(void)textFieldDidEndEditing:(UITextField *)textField { [UIView animateWithDuration:0.4 animations:^ { self.view.superview.frame = CGRectMake(self.view.superview.frame.origin.x, 212, self.view.superview.frame.size.width, self.view.superview.frame.size.height); } }]; }

如何使iPad上的模式视图上的翻转animation在后台透明?

如何使我的翻转animation透明,以便它后面的视图显示? 这是我的一些代码: EditInfoViewController *editController = [[EditInfoViewController alloc] initWithNibName:@"EditInfoViewController" bundle:nil]; editController.delegate = self; UINavigationController *editNavController = [[UINavigationController alloc] initWithRootViewController:editController]; editNavController.modalPresentationStyle = UIModalPresentationCurrentContext; editNavController.modalTransitionStyle = UIModalTransitionStyleFlipHorizontal; [self.navigationController presentModalViewController:editNavController animated:YES]; 一张照片值1000字(这是在翻页animation中拍摄的):