草庐IT

some_instance_variable

全部标签

ios - 将 cordova 添加到我现有的 ios 项目 : cordovaSettingForKey:]: unrecognized selector sent to instance 时出现问题

我试图将cordova项目添加到我现有的ios项目中。我可以成功编译应用程序。但是当我运行它时,我得到了cordovaSettingForKey的异常。-[__NSDictionaryMcordovaSettingForKey:]:无法识别的选择器发送到实例0x147052a30异常抛出:-[__NSDictionaryMcordovaSettingForKey:]:发送到实例0x147052a30的无法识别的选择器谁知道如何解决这个问题这是头文件#import#import#import@interfaceMainViewController:CDVViewController@en

ios - -[UIImage _imageByUnpremultiplying] : unrecognized selector sent to instance

我在使用CI过滤器时遇到了奇怪的错误,我怎么能通过查看日志来知道我错过了什么CIFilter*filter=[CIFilterfilterWithName:@"CIFalseColor"];[filtersetValue:imageforKey:@"inputImage"];CIColor*myBlue=[CIColorcolorWithRed:0.0green:0.0blue:0.6alpha:0.5];[filtersetValue:myBlueforKey:@"inputColor0"];CIImage*filteredImageData=[filtervalueForKey:@

ios - appname.ViewsVC collectionView :cellForItemAtIndexPath:]: unrecognized selector sent to instance

我正在构建一个CollectionView并收到以下错误。Terminatingappduetouncaughtexception'NSInvalidArgumentException',reason:'-[appname.ViewsVCcollectionView:cellForItemAtIndexPath:]:unrecognizedselectorsenttoinstance这是我自定义单元格的代码//cellconfigurationfunccollectionView(_collectionView:UICollectionView,cellForItemAtindexPa

iphone - [CFNumber 发布] : message sent to deallocated instance

当我从HistoryCoreData对象记录/请求值时,下面的代码返回以下错误:-[CFNumberrelease]:messagesenttodeallocatedinstance0x17ea2a90我最初认为是其他地方存在问题,并花了无数小时尝试调试它,但没有成功。经过进一步测试,我已将崩溃确定为从HistoryCoreData对象请求某些值。任何人都可以看到为什么要释放对象值的任何问题吗?[[DocumentHandlersharedDocumentHandler]performWithDocument:^(UIManagedDocument*document){if(!self

【已解决】JSON parse error: Cannot deserialize instance of `java.lang.String` out of START_ARRAY token;

前后端联调,JSON转换问题JSONparseerror:Cannotdeserializeinstanceof`java.lang.String`outofSTART_ARRAYtoken;【已解决】JSONparseerror:Cannotdeserializeinstanceof`java.lang.String`outofSTART_ARRAYtoken; 上述问题为:前后端联调,类型转换不一致问题 不能将数组等转换为String类型在我进行前后端联调的时候,发现前端传过来的JSON数据为:{"customAttributeItems":[{"text":"wq"}],"name":"

Objective-C ARC __weak 变量引用触发警告 "__weak attribute cannot be specified on an automatic variable"

我有一个应用程序(仅限ios5),它在方法内声明了一个在block内使用的弱变量,以引用ViewController的实例。QRCodeViewController*__weakweakSelf=self;问题是编译器显示警告说:__weakattributecannotbespecifiedonanautomaticvariable在那个应用程序中我使用了很多弱引用而且我从来没有看到这样的警告,与其他类的唯一区别是这个类是在.mm文件中实现的,因为它使用c++对象并且项目可以如果我将其保留为.m,则编译。我必须说代码似乎工作正常。有什么建议吗? 最佳答案

objective-c - removeObjectAtIndex 导致 "message sent to deallocated instance"

我正在将一些代码转换为ARC。该代码在NSMutableArray中搜索元素,然后查找、删除并返回该元素。问题是元素在“removeObjectAtIndex”后立即被释放:-(UIView*)viewWithTag:(int)tag{UIView*view=nil;for(inti=0;i当我运行它时,我得到了***-[UIViewrespondsToSelector:]:messagesenttodeallocatedinstance0x87882f0在第二条日志语句处。在ARC之前,我小心地在调用removeObjectAtIndex:之前保留对象,然后自动释放它。我如何告诉AR

ios - "Unrecognized selector sent to instance"使用自定义表格单元格时

我已经实现了自定义表格单元格,当表格进入cellForRowAtIndexPath时收到运行时错误(“无法识别的选择器发送到实例”)。尝试实例化自定义单元格时发生错误。我之前已经成功地做到了这一点,但现在错误不会消失。我有一个prtotype单元格,它的自定义类属性设置为自定义单元格UITableViewCell子类。这是自定义单元格:#import"FavoriteCell.h"@implementationFavoriteCell@synthesizelblGaugeID,lblMainTitle,bgImage;-(id)initWithStyle:(UITableViewCel

ios - -[不是类型 _cfTypeID] : message sent to deallocated instance

我正在使用代码为图像提供不同的效果,例如对比度、色调、饱和度等;并使用苹果glImageProcessing代码,我从我的View跳转到glimgeProcessing,并将生成的图像保存到appDelegateuiimage属性中文件。从EagleView返回后,我使用viewDidAppear函数将我的ImageView更改为更新的图像"-[NotAType_cfTypeID]:messagesenttodeallocatedinstance"我的代码是NSLog(@"appimafeis%@",app.image);[imageViewsetImage:app.image];我的

ios - handleTurnEventForMatch :didBecomeActive: callbacks only arriving some of the time

这是thisquestion的后续行动.如果您没有收到对handleTurnEventForMatch:didBecomeActive:的任何回调,请尝试那里的答案。在我的游戏中,我有时只会收到回合事件通知。但是如果我返回到matchMakerViewController并重新加载比赛,状态总是正确的。我的游戏在每个回合中多次上传回合状态。有趣的是,如果另一台设备在对手的回合收到一个通知,那么它就不太可能在同一回合收到更多通知。然而,这不是100%。总的来说,我的互联网连接似乎运行良好。知道是什么原因造成的吗? 最佳答案 终于找到问