草庐IT

background_crash

全部标签

ios - 适用于 iOS 的 Google Plus API : Share function - Crash app when touching "Public" in the native dialog share?

我在我的应用程序中使用了GooglePlusAPI来共享内容。我使用这些行在我的应用程序中显示native共享对话框:idshareBuilder=[[GPPSharesharedInstance]nativeShareDialog];[shareBuildersetPrefillText:MY_TEXT];[shareBuildersetURLToShare:[NSURLURLWithString:MY_URL];[shareBuilderopen];对话框显示成功。当我触摸“公开”以更改隐私时,应用程序立即崩溃。我使用的是XCode5,我的iPhone是iOS5.0。XCode显示

ios - 覆盖 drawRect(_ :) in UITableViewHeaderFooterView results in black background

1。空自定义View实现我创建了UITableViewHeaderFooterView的空子类,如下所示:classMyCustomHeaderView:UITableViewHeaderFooterView{}我用我的TableView注册了那个类:tableView.register(MyCustomHeaderView.self,forHeaderFooterViewReuseIdentifier:"myHeaderView")并实现数据源函数如下:functableView(_tableView:UITableView,viewForHeaderInSectionsection

iOS UITableView : changing background color of table overrides background color of cells

我遇到一个问题,即设置tableView的背景颜色会覆盖我为各个单元格设置的背景颜色。更具体地说,我有一个包含3行的表格:顶部单元格为深灰色,底部2个单元格为红色:http://imgur.com/otYlFMx,LvoLDzY,tXiJenw#0-(void)tableView:(UITableView*)tableViewwillDisplayCell:(UITableViewCell*)cellforRowAtIndexPath:(NSIndexPath*)indexPath{UIColor*sectionBackgroundColor=[UIColorcolorWithRed:

ios - 异常类型 : 00000020 and Crash thread 4 are related?

实际上,这种崩溃并不是每次都会重现,甚至不会经常重现,但我们在生产应用程序中遇到了这种崩溃。我不确定问题出在哪里。它告诉环境类第38行中的线程4发生崩溃。Code:NSBundle*bundle=[NSBundlemainBundle];NSString*envsPListPath=[bundlepathForResource:@"Environment"ofType:@"plist"];Line38:NSDictionary*environments=[[NSDictionaryalloc]initWithContentsOfFile:envsPListPath];但根据异常类型:0

iOS 10 : sharing image/save image started crashing

我有一个代码,它通过UIActivityViewController共享一行文本和一张图像。在我更新到iOS10后,它开始崩溃并显示以下日志:Thisapphascrashedbecauseitattemptedtoaccessprivacy-sensitivedatawithoutausagedescription.Theapp'sInfo.plistmustcontainanNSPhotoLibraryUsageDescriptionkeywithastringvalueexplainingtotheuserhowtheappusesthisdata.我没有发布代码,因为它似乎甚至

iOS,ARC : Background thread freezes UI

我有一个UIViewController和一个UITableView作为subview。单击某个单元格时,应显示一个UIImagePickerController。由于初始化时间较长,所以当UIViewController确实出现时,我在后台执行此过程。现在我将ARC添加到我的项目中,但它仍然无法正常工作。初始进程卡住了UI。这是我的代码。-(void)viewDidAppear:(BOOL)animated{[superviewDidAppear:animated];[selfperformSelectorInBackground:@selector(initImagePickerC

objective-c - iOS 应用程序 : Several crashes with common themes of: SIGSEGV and _sigtramp

作为obj-c的新手,我不是阅读堆栈跟踪的高手,但我通常可以弄清楚代码中从哪里开始查找。然而,在测试过程中,其中一名测试人员不断报告几次随机崩溃。而且我无法制作堆栈跟踪的头部或尾部,因为它们不指向我自己的任何代码。这里有两个:0WITFree0x000a5a92_mh_execute_header+3385781WITFree0x000a677c_mh_execute_header+3418842libsystem_c.dylib0x355cc7ec_sigtramp+483WITFree0x000fcd02_mh_execute_header+6955544WITFree0x000f

iOS:dispatch_get_global_queue QOS_CLASS_BACKGROUND 在 7.1.2 上崩溃

我有以下使用block获取联系人的代码片段:if(&ABAddressBookCreateWithOptions!=NULL){CFErrorReferror=nil;addressBook=ABAddressBookCreateWithOptions(NULL,&error);ABAddressBookRequestAccessWithCompletion(addressBook,^(boolgranted,CFErrorReferror){dispatch_sync(dispatch_get_main_queue(),^{if(error){//...}elseif(!grante

ios - 无法结束 BackgroundTask : no background task exists with identifier 1fd57580, 或者它可能已经结束

AppDelegate.m文件包含-(void)applicationDidEnterBackground:(UIApplication*)application{UIBackgroundTaskIdentifiertaskID=[applicationbeginBackgroundTaskWithExpirationHandler:^{[applicationendBackgroundTask:taskID];}];}我不知道为什么我在gdb中收到这条消息Can'tendBackgroundTask:nobackgroundtaskexistswithidentifier1fd575

ios - crashlytics 获取crash的线路和方法还有开源的PLCrashReporter

正如我提到的,我正在尝试恢复崩溃的线路以及崩溃发生时的功能。我需要指出,我已经在AppDelegate中尝试了下一个代码,但我得到的堆栈未被符号化,类和错误也被抛出:NSSetUncaughtExceptionHandler(&uncaughtExceptionHandler);voiduncaughtExceptionHandler(NSException*exception){NSLog(@"Exceptiondescription-%@",[exceptiondescription]);NSLog(@"Exceptionname-%@",[exceptionname]);NSLo