草庐IT

bucket_selector

全部标签

ios - 应用程序在 [NSIndexPath setTableViewStyle :]: unrecognized selector sent to instance in ipad 上崩溃

2013-03-0617:38:14.764LiveiPad[506:607]-[NSIndexPathsetTableViewStyle:]:unrecognizedselectorsenttoinstance0x57ac402013-03-0617:38:14.785LiveiPad[506:607]***Terminatingappduetouncaughtexception'NSInvalidArgumentException',reason:'-[NSIndexPathsetTableViewStyle:]:unrecognizedselectorsenttoinstance

ios - 错误 : no visible @interface for 'NSObject' declares the selector 'copyWithZone:'

我想允许对我的类对象进行深度复制,并尝试实现copyWithZone但调用[supercopyWithZone:zone]会产生错误:error:novisible@interfacefor'NSObject'declarestheselector'copyWithZone:'@interfaceMyCustomClass:NSObject@end@implementationMyCustomClass-(id)copyWithZone:(NSZone*)zone{//ThefollowingproducesanerrorMyCustomClass*result=[supercopyW

ios - [NSManagedObjectContext 删除 :]: unrecognized selector sent to instance

核心数据让我心烦意乱。我正在删除旧数据并想插入从服务器收到的新数据。现在删除部分给出了一个“sigabort”:-[NSManagedObjectContextdelete:]:unrecognizedselectorsenttoinstance0x522f5502013-09-2714:05:56.592*Terminatingappduetouncaughtexception'NSInvalidArgumentException',reason:'-[NSManagedObjectContextdelete:]:unrecognizedselectorsenttoinstance0

iphone - 应用程序加载程序警告 : The app references non-public selectors in Payload/<Appname>. app/<App name>: changeState:

我有这个应用程序加载器警告,但我不知道它来自哪里。我的应用程序中有facebook和解析sdk。我看过thispost.不过,它对我没有帮助,因为我的问题显然出在名为changeState的东西上。在我为我的应用程序编写的代码中的任何地方都没有调用它。我也不使用facebooksdk,我需要在应用程序中使用parsesdk。我该如何解决这个问题? 最佳答案 changeState在libGoogleAdMobAd.a中使用,它是GoogleAdMob的一部分。我在审核说明中提到了它,我的应用获得了批准。

ios - +[UIPasteboard _accessibilityUseQuickSpeakPasteBoard] : unrecognized selector sent to class

我在AppleDev论坛上问过这个问题,但仍然没有得到答案。我们经历过100%的iOS8设备崩溃:+[UIPasteboard_accessibilityUseQuickSpeakPasteBoard]:unrecognizedselectorsenttoclass堆栈跟踪是:Thread:FatalException:NSInvalidArgumentException0CoreFoundation0x2889ec1f__exceptionPreprocess+1261libobjc.A.dylib0x36049c8bobjc_exception_throw+382CoreFound

ios - __NSCFString timeIntervalSinceReferenceDate] : unrecognized selector sent to instance

我正在尝试计算两次之间的持续时间差异。我从JSONArray获取持续时间。我使用下面的代码NSDate*starttime=[[NSDatealloc]init];NSDate*endtime=[[NSDatealloc]init];starttime=[currentRecordvalueForKey:@"starttime"];endtime=[currentRecordvalueForKey:@"endtime"];我将上面的值传递给另一个方法+(NSString*)remaningTime:(NSDate*)startDateendDate:(NSDate*)endDate{N

ios - NSInvalidArgumentException',原因 : '-[UITableView setSeparatorInset:]: unrecognized selector sent to instance

viewWillAppear中的以下内容[SYPTableViewsetSeparatorInset:UIEdgeInsetsZero];在iOS7上工作正常,但在6.1上它引发了异常:NSInvalidArgumentException',reason:'-[UITableViewsetSeparatorInset:]:unrecognizedselectorsenttoinstance我的目的是去除单元格边框。 最佳答案 separatorInset属性在iOS7.0的UITableView上可用,这就是您在iOS6.1上获得异

ios - NSURLSessionTask 类别方法崩溃,出现 "Unrecognized selector sent to instance"

我需要向NSURLSessionTask添加方法。这是我的类别,它应该这样做://NSURLSessionTask+Extras.h#import@interfaceNSURLSessionTask(Extras)-(void)helloNSURLSessionTask;@end//NSURLSessionTask+Extras.m#import"NSURLSessionTask+Extras.h"@implementationNSURLSessionTask(Extras)-(void)helloNSURLSessionTask{NSLog(@"helloNSURLSessionTa

ios - [NSFunctionExpression _propertyType] : unrecognized selector sent to instance

我的项目实现了与iCloud的核心数据同步。当我尝试删除重复项时,出现以下异常:-[NSFunctionExpression_propertyType]:无法识别的选择器发送到实例我读到此类问题的主要原因是在不同线程上使用相同的托管对象上下文。然而,就我而言,所有进程都在主线程上完成。我不知道如何解决这个问题。在初始化方法中,我添加了以下观察者:[[NSNotificationCenterdefaultCenter]addObserverForName:NSPersistentStoreDidImportUbiquitousContentChangesNotificationobjec

ios - CoreData 设置关系给出错误'-[WeatherObservation count] : unrecognized selector sent to instance

WeatherObservation是我的数据模型中的一个实体,我试图设置它与另一个对象的关系(一对一),我通过导航Controller传入该对象。几周前它起作用了。我更改了模型中的一些其他实体,重新生成了类,并且此关系设置为NSManagedObject,而不是其他实体的类。我尝试重新生成此类几次,然后将其更改为应有的内容并将该类添加到.h,#import到.m我假设[MANAGEDOBJECTcount]消息是核心数据魔术的一部分,我不会在我的代码中的任何地方调用它。我不确定从哪里开始,该做什么,我可以在这里发布什么来帮助获得答案?我试过:weather.hiveObservati