Tag: ios7

应用程序工作正常与开发人员与Xcode构build。 但使用ipa文件运行时崩溃

我的应用程序在xcode的设备上工作正常。 但使用ipa文件运行时崩溃。 当我使用pipe理器检查控制台时,显示以下错误 终止应用程序由于未捕获的exception'NSInvalidArgumentException',原因:' – [UINibDecoder setScrollEnabled:]:无法识别的select器发送到实例 我用UIPageViewController在UITextView中显示数据。 数据已经使用NSOperationdynamic地添加到已经用于在UITextView中显示的数组中。 易出错的代码行在UIPageViewController的DataViewController中。 这是代码 textView=[[UITextView alloc]initWithFrame:CGRectMake(0, 0, 290, 500)]; parentView.backgroundColor=[UIColor whiteColor]; [textView setAttributedText:textViewAttributedString]; [textView setScrollEnabled:NO]; [textView setBounces:NO]; textView.translatesAutoresizingMaskIntoConstraints=NO; textView.editable=NO; textView.selectable=YES; textView.delegate=self; textView.tag=currentTextViewTag;

应用程序崩溃NSRangeException

我们使用Xcode4.5为iOS创build了Phonegap应用程序,并使用HTML创build了集成的Bing地图。 我们正在使用cordova-1.9.0 当我们在iOS7中运行我们的应用程序时,应用程序崩溃,出现下面的exception。 *由于未捕获exception“NSRangeException”,原因:'* – [WebCoreSharedBufferData getBytes:range:]:range {0,4000}超出数据长度0' 应用程序在放大时刷新 – 缩小地图。 地图是使用mapdotnet-8.3加载的

GPUImage swift iOS 7

有人用Swift和GPUImage为iOS 7+发布了应用程序吗? 当我试图发布一个应用程序,我得到错误(这不是我的屏幕,但我得到相同的) 应用程序在ios 7的所有设备和模拟器上都非常完美,我也通过testflight将其作为adhoc发送,并且仍然可以工作,但是现在我无法发布。

在ios 7中添加显示Bottom的Bar

我在我的应用程序的底部显示增加,但在iOS 7中,添加从底部显示,但在iOS 6添加显示在底部。 -(void)showAdds { [bannerView removeFromSuperview]; if ((UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad)) { // bannerView = [[GADBannerView alloc] initWithAdSize:kGADAdSizeBanner]; bannerView = [[GADBannerView alloc] initWithFrame:CGRectMake(128.0, 670 , GAD_SIZE_728x90.width, GAD_SIZE_728x90.height)]; bannerView.adUnitID = @"********"; } else { // Create a view of the standard size at the bottom of the screen. // bannerView = [[GADBannerView alloc] initWithAdSize:kGADAdSizeBanner]; bannerView = […]

iOS7:UIImageView永远出现

我有一个使用GCD创build和插入视图的UIView 。 它在iOS7上工作,但UIImageView永远显示。 这是我正在使用的示例代码。 UIScrollView *scrollView = [[UIScrollView alloc] initWithFrame:CGRectMake(0, 0, 320, 120)]; for (int i = 0; i < 200; i++) { UIView *view = [[UIView alloc] initWithFrame:CGRectMake(77 * i, 0, 77, 88)]; [scrollView addSubview:view]; dispatch_queue_t queue = dispatch_queue_create("image", NULL); dispatch_async(queue, ^{ UIImageView *imageView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"photo@hd.png"]]; imageView.frame = CGRectMake(0, 0, 77, […]

如何显示UIAlertView的本地通知,而不是显示在ios7的屏幕顶部的标签通知?

因为我想除了iOS5他们删除UIAlertView而不是一个标签出现在我不想要的屏幕的顶部,我使用这个代码,但它不会触发alertview,我需要localnotification的旧样子。 UILocalNotification* localNotification = [[UILocalNotification alloc] init]; localNotification.fireDate = pickerDate; localNotification.alertBody = self.itemText.text; localNotification.alertAction = @"Show me the item"; localNotification.timeZone = [NSTimeZone defaultTimeZone]; localNotification.applicationIconBadgeNumber = [[UIApplication sharedApplication] applicationIconBadgeNumber] [[UIApplication sharedApplication] scheduleLocalNotification:localNotification]; 请帮助,在此先感谢!

iOS会杀死我的后台获取进程; 创build不必要的崩溃日志

我在iOS 7中使用新的后台获取模式,在用户的崩溃日志中,我看到了很多: MyApp[11893] has active assertions beyond permitted time: {( <BKProcessAssertion: 0x176afef0> identifier: Background Content Fetching (3281) process: MyApp[11893] permittedBackgroundDuration: 30.000000 reason: backgroundContentFetching owner pid:33 preventSuspend preventThrottleDownUI preventIdleSleep preventSuspendOnSleep )} 我想我得到这个,因为我的更新花费的时间超过了允许的30秒,因此被系统杀死。 我不能确保获取时间<30秒,因为这显然取决于许多外部因素。 现在,这似乎是相当合理的行为 – 甚至是理想的 – 但是它是否需要崩溃和污染日志? 我是否应该监视[UIApplication sharedApplication].backgroundTimeRemaining ,如果我开始按时运行,或者我正在做的事情,请尽早调用completionHandler ?

不能执行'codesign'(没有这样的文件或目录)

当绑定在Xcode 5设备上运行应用程序时出现此错误 这里是完整的错误 CodeSign /Users/Nevo/Library/Developer/Xcode/DerivedData/RecipesBook-efcrcmgnkaitsqaxahtumfbdxtmb/Build/Products/Debug-iphoneos/RecipesBook.app cd "/Users/Nevo/Desktop/RecipesBook for ios 7 and 6" setenv CODESIGN_ALLOCATE "/Applications/Xcode 2.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/codesign_allocate" setenv PATH "/Applications/Xcode 2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode 2.app/Contents/Developer/usr/bin‭:‬‭/‬usr/bin‭:/‬bin‭:/‬usr/sbin‭:/‬sbin" Using code signing identity "iPhone Distribution: Shay Shalev (QN94KCWC64)" and provisioning profile "ProfileRecipeBook" (52D189D8-2FFD-4939-A3C6-1CD1F8B645E0) codesign –force –sign 4F0E5397A87B47EE07EC3288681661CBCBB4781C –resource-rules=/Users/Nevo/Library/Developer/Xcode/DerivedData/RecipesBook-efcrcmgnkaitsqaxahtumfbdxtmb/Build/Products/Debug-iphoneos/RecipesBook.app/ResourceRules.plist –entitlements /Users/Nevo/Library/Developer/Xcode/DerivedData/RecipesBook-efcrcmgnkaitsqaxahtumfbdxtmb/Build/Intermediates/RecipesBook.build/Debug-iphoneos/RecipesBook.build/RecipesBook.xcent /Users/Nevo/Library/Developer/Xcode/DerivedData/RecipesBook-efcrcmgnkaitsqaxahtumfbdxtmb/Build/Products/Debug-iphoneos/RecipesBook.app error: can't exec 'codesign' (No such file or directory)

如何实现使用Game Center的最佳分数今日排行榜?

我想在Game Center中创build一个排行榜来获得今天提交的最高分数,而且我希望每天午夜重置。 创build“最近得分”排行榜并不难,只需在应用程序中logging当天的得分并提交即可,但是我担心的是,第二天没有启动应用程序的用户将会得到一个旧分数仍然处于“今日最佳成绩”板,直到他们发布为止。 有没有办法让分数到期,或只在Game Center排行榜上显示当天的分数?

在使用storybaords时,需要以编程方式调整子视图的大小?

我对自定义视图非常熟悉。 今天我开始使用故事板,我无法说服自己使用故事板。 问题: – 我已经通过视图控制器设置故事板。 – 在模拟器上运行4英寸,我很好与视图的布局。 – 在模拟器上运行3.5英寸,我很难过,因为我的观点是部分可见的。 这里是屏幕截图。 我的SotryBaord(看“删除用户”button)。 删除用户button框架: 在模拟器上运行4英寸 在模拟器上运行4英寸 (我有问题) 我如何获得调整了布局的框架,以便在两个尺寸的iPhone中都能够清晰地运行。 我的删除用户button不应该离开屏幕。