草庐IT

sqlite-instance

全部标签

iphone - [__NSCFNumber 长度] : unrecognized selector sent to instance 0x6d21350

这个错误意味着什么?[__NSCFNumberlength]:unrecognizedselectorsenttoinstance0x6d21350这是我的代码:NSString*urlString=@"http://api.twitter.com/1/statuses/update.json";NSURL*url=[NSURLURLWithString:urlString];NSMutableDictionary*params=[[NSMutableDictionaryalloc]init];[paramssetObject:statusforKey:@"status"];[para

iphone - [__NSCFNumber 长度] : unrecognized selector sent to instance 0x6d21350

这个错误意味着什么?[__NSCFNumberlength]:unrecognizedselectorsenttoinstance0x6d21350这是我的代码:NSString*urlString=@"http://api.twitter.com/1/statuses/update.json";NSURL*url=[NSURLURLWithString:urlString];NSMutableDictionary*params=[[NSMutableDictionaryalloc]init];[paramssetObject:statusforKey:@"status"];[para

sqlite快速检索

最近用sqlite自带的普通检索,检索大约几十万条数据,速度实在太慢,于是去网上找到了sqlite内置的全文检索,即FTS3/FTS4检索,此文对于FTS3与FTS4检索的区别不做进一步说明。1.结论(1)普通检索:SELECT*FROMstatistics_tableWHEREseqnum=1;(2)全文检索:SELECT*FROMstatistics_tableWHEREseqnumMATCH%1通过大量测试,FTS检索速度大约为普通检索的1000倍。2.采用虚拟表的全文检索(1)首先要创建VIRTUALTABLE:CREATEVIRTUALTABLEpagesUSINGfts3(titl

Avalonia 使用EFCore调用SQLite实现Singleton全局注册

Avalonia使用EFCore调用SQLite实现Singleton全局注册本篇博客是我的开源项目TerraMours.Chat.Ava的更新的记录分享,本次更新使用EntityFrameWorkCore调用SQLite,实现数据的本地化和查询的优化,删除了dbpross类(直接调用SQLite的操作类)。大大提高了代码的简洁度和易读性。通过全局注册的ChatDbcontext对象,是操作数据库变的非常方便。对项目感兴趣的同学可以到github上搜索TerraMours.Chat.Ava。希望通过该项目了解和学习Avalonia开发的朋友可以在我的github上拉取代码,同时希望大家多多点点

关于JS中的一个[Vue warn]: Property “xxx“ was accessed during render but is not defined on instance 小问题

作为一个JavaScript的初学者,以此记录做小练习时途中遇到的一点点小问题。在网上找了很多关于无法找到“xxx”实例的消息,但是要么是太过于高级亦或者太过于不想关的例子,java与前端相关的js技术现在都是用VUE3来实现,以下只是单独抽出来一个js里的小练习里遇到的小错误,以此文章来记录。第一个例子:(错误例子)报错信息为:[Vuewarn]:Property"tdl"wasaccessed duringrenderbutisnotdefinedoninstance意思是在执行v-for循环的过程中,tdl被认证通过但是没有实例也就是说在data(){return{}}里没有拿回到tdl

iphone - XCode 4.3 无法加载持久存储 UserDictionary.sqlite

我已经在iOS应用程序上工作了一段时间,突然之间,每次在iOS5.1模拟器中运行该应用程序时,我都会遇到以下崩溃。该应用程序不使用核心数据,我不确定是什么原因导致的。我已从模拟器中删除该应用程序,完成清理并重建,但似乎没有任何帮助。UnabletoloadpersistentstoreatURL'file://localhost/Users/jcottrell/Library/Application%20Support/iPhone%20Simulator/5.1/Library/Keyboard/UserDictionary.sqlite'({metadata={NSPersiste

iphone - XCode 4.3 无法加载持久存储 UserDictionary.sqlite

我已经在iOS应用程序上工作了一段时间,突然之间,每次在iOS5.1模拟器中运行该应用程序时,我都会遇到以下崩溃。该应用程序不使用核心数据,我不确定是什么原因导致的。我已从模拟器中删除该应用程序,完成清理并重建,但似乎没有任何帮助。UnabletoloadpersistentstoreatURL'file://localhost/Users/jcottrell/Library/Application%20Support/iPhone%20Simulator/5.1/Library/Keyboard/UserDictionary.sqlite'({metadata={NSPersiste

iphone - "Pushing the same view controller instance more than once is not supported"异常

我正在使用以下代码检索一些消息并将它们放入我的收件箱。MyInboxVC*inboxVC=[MyInboxVCget];//uploadallthependingmessagesUINavigationController*devNavController=[[MyappMgrget]getDeveloperNavigationController];[devNavControllerpushViewController:inboxVCanimated:YES];[devNavControllersetNavigationBarHidden:NO];我得到异常Terminatingap

iphone - "Pushing the same view controller instance more than once is not supported"异常

我正在使用以下代码检索一些消息并将它们放入我的收件箱。MyInboxVC*inboxVC=[MyInboxVCget];//uploadallthependingmessagesUINavigationController*devNavController=[[MyappMgrget]getDeveloperNavigationController];[devNavControllerpushViewController:inboxVCanimated:YES];[devNavControllersetNavigationBarHidden:NO];我得到异常Terminatingap

iphone - NSGenericException',原因 : 'Push segues can only be used when the source controller is managed by an instance of UINavigationController

所以我正在制作一个包含5个ViewController的应用程序,第一个嵌入在UINavigationController中,前4个ViewController之间的连接工作正常。然而,引入第5个ViewController打破了这一点,我收到了错误Terminatingappduetouncaughtexception'NSGenericException',reason:'PushseguescanonlybeusedwhenthesourcecontrollerismanagedbyaninstanceofUINavigationController.'我对这个第5个ViewCo