草庐IT

bucket_selector

全部标签

iphone - 只有 iOS 7 崩溃 [NSNull intValue] : unrecognized selector sent to instance

我想从JSON服务获取数据。从JSON值获取数据时,只有iOS7版本崩溃。它从下面的JSON服务返回:{voteAverageRating=0;voteCount=0;}我的代码intvoteCount=[listDicobjectForKey:@"voteCount"]intValue];_LB_voteNumber.text=[NSStringstringWithFormat:@"(%i)",voteCount];它适用于iOS5、5.1、6.0、6.1,但它仅在iOS7版本上崩溃。它给出了这个错误:0x00098117_mh_execute_header[NSNullintVal

iphone - 只有 iOS 7 崩溃 [NSNull intValue] : unrecognized selector sent to instance

我想从JSON服务获取数据。从JSON值获取数据时,只有iOS7版本崩溃。它从下面的JSON服务返回:{voteAverageRating=0;voteCount=0;}我的代码intvoteCount=[listDicobjectForKey:@"voteCount"]intValue];_LB_voteNumber.text=[NSStringstringWithFormat:@"(%i)",voteCount];它适用于iOS5、5.1、6.0、6.1,但它仅在iOS7版本上崩溃。它给出了这个错误:0x00098117_mh_execute_header[NSNullintVal

objective-c - NSInvalidArgumentException',原因 : '-[__NSCFString isFileURL]: unrecognized selector sent to instance 0x712e450'

我是iPhone应用程序开发的新手。当我运行一个示例项目时,我解析了一个xml提要并在表格View中显示内容和图像,我得到了这个错误-"NSInvalidArgumentException',reason:'-[__NSCFStringisFileURL]:unrecognizedselectorsenttoinstance0x712e450'"它仅在我尝试在UITableViewCell中显示图像时发生。我用于从url获取图像的代码是-if([elementNameisEqualToString:IMAGE]){NSURL*imageUrl=[attributeDictobjectF

objective-c - NSInvalidArgumentException',原因 : '-[__NSCFString isFileURL]: unrecognized selector sent to instance 0x712e450'

我是iPhone应用程序开发的新手。当我运行一个示例项目时,我解析了一个xml提要并在表格View中显示内容和图像,我得到了这个错误-"NSInvalidArgumentException',reason:'-[__NSCFStringisFileURL]:unrecognizedselectorsenttoinstance0x712e450'"它仅在我尝试在UITableViewCell中显示图像时发生。我用于从url获取图像的代码是-if([elementNameisEqualToString:IMAGE]){NSURL*imageUrl=[attributeDictobjectF

objective-c - 自定义框架中的错误 "No known class method for selector ' Hello :'"

我正在为一家公司做一个框架,我已经完成了所有的代码。我现在正试图将它打包成一个框架。作为测试,我用这个名称创建了一个方法:-(void)Hello:(NSString*)worldText;当我尝试在应用程序中使用此代码[CompanyMobileHello:@"World"];在框架中调用它时,出现编译器错误Noknownclassmethodforselector'Hello:'我框架中的.m如下:#import"Hello.h"@implementationHello-(id)init{self=[superinit];if(self){//Initializationcodeh

objective-c - 自定义框架中的错误 "No known class method for selector ' Hello :'"

我正在为一家公司做一个框架,我已经完成了所有的代码。我现在正试图将它打包成一个框架。作为测试,我用这个名称创建了一个方法:-(void)Hello:(NSString*)worldText;当我尝试在应用程序中使用此代码[CompanyMobileHello:@"World"];在框架中调用它时,出现编译器错误Noknownclassmethodforselector'Hello:'我框架中的.m如下:#import"Hello.h"@implementationHello-(id)init{self=[superinit];if(self){//Initializationcodeh

ios - [CIContext initWithOptions :]: unrecognized selector sent to instance 0x170400960 in xcode8

在ios8.3上运行,在ios9或10上运行没有这个问题。-[CIContextinitWithOptions:]:unrecognizedselectorsenttoinstance0x1704009602016-09-1918:08:21.025***Terminatingappduetouncaughtexception'NSInvalidArgumentException',reason:'-[CIContextinitWithOptions:]:unrecognizedselectorsenttoinstance0x170400960'***Firstthrowcallsta

ios - [CIContext initWithOptions :]: unrecognized selector sent to instance 0x170400960 in xcode8

在ios8.3上运行,在ios9或10上运行没有这个问题。-[CIContextinitWithOptions:]:unrecognizedselectorsenttoinstance0x1704009602016-09-1918:08:21.025***Terminatingappduetouncaughtexception'NSInvalidArgumentException',reason:'-[CIContextinitWithOptions:]:unrecognizedselectorsenttoinstance0x170400960'***Firstthrowcallsta

ios - 升级到 xcode 4.6 和 iOS 6.1 后出错 "used as the name of the previous parameter rather than as part of the selector"

更新到xcode4.6和ios6.1后,我收到这个新错误“'objectType'usedasthenameofthepreviousparameterratherthanpartoftheselector”。我多次得到这个。有什么想法吗?PS:它的显示方法是反向地理编码的自定义方法。-(void)getAddress:(NSString*)objectType:(CLLocationCoordinate2D)objectCoordinate 最佳答案 它说objectType是方法中NSString对象的名称,而不是方法名称的一部

ios - 升级到 xcode 4.6 和 iOS 6.1 后出错 "used as the name of the previous parameter rather than as part of the selector"

更新到xcode4.6和ios6.1后,我收到这个新错误“'objectType'usedasthenameofthepreviousparameterratherthanpartoftheselector”。我多次得到这个。有什么想法吗?PS:它的显示方法是反向地理编码的自定义方法。-(void)getAddress:(NSString*)objectType:(CLLocationCoordinate2D)objectCoordinate 最佳答案 它说objectType是方法中NSString对象的名称,而不是方法名称的一部