草庐IT

row_count

全部标签

ios - UITableView 内部错误 : unable to generate a new section map with old section count: and new section count: with userInfo (null)

我以前从未见过这个错误,我搜索了它可能发生的原因,但找不到任何相关信息:CoreData:error:Seriousapplicationerror.AnexceptionwascaughtfromthedelegateofNSFetchedResultsControllerduringacallto-controllerDidChangeContent:.UITableViewinternalbug:unabletogenerateanewsectionmapwitholdsectioncount:1andnewsectioncount:0withuserInfo(null)有人知道

ios - 什么时候应该在 MonoTouch build设置中启用 “reference counting extension”?

我应该在什么情况下使用此功能?它到底有多成熟?有什么优点和缺点?它解决了什么问题?它是特定于MonoTouch、MonoGC还是ObjC中的引用计数? 最佳答案 以下是对您的问题的一些快速、高层次(和有序的)答案...IsitspecifictoMonoTouch,MonoGC,orreferencecountinginObjC?它允许单一垃圾收集器sgen与Objective-C引用计数更紧密地合作。Mono(或Android的Mono)不需要这种意识,因此它特定于MonoTouch。Howexactlymatureisit?正如

ios - indexpath.row 从 1 而不是 0 开始

我遇到了uitableview的strance问题。有时当我的表的数据源/numberofrowsinsection有3个值时,cellforowatindexpath从0-1而不是0-0开始。有人可以帮我找出发生此问题的可能原因。甚至尝试打印日志,但日志显示为0-1和0-2但不是0-0。这意味着它不会被调用到第一行,即0-0。 最佳答案 tableView:cellForRowAtIndexPath:根据需要调用以显示单元格,如果不显示单元格则不调用。如果未显示第0行,则不会调用section-cell0-0。

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

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

ios - 无效更新 : invalid number of rows in section

我正在使用MicrosoftAzure服务开展一个项目。在删除一行时出现此错误:Terminatingappduetouncaughtexception'NSInternalInconsistencyException',reason:'Invalidupdate:invalidnumberofrowsinsection0.Thenumberofrowscontainedinanexistingsectionaftertheupdate(2)mustbeequaltothenumberofrowscontainedinthatsectionbeforetheupdate(2),plus

ios - fetchedResultsController.fetchedObjects.count = 0 但它充满了对象

我使用非常标准的fetchedResultsController实现tableView中的输出。在-viewDidLoad结束时,我进行了第一次调用:NSError*error=nil;if(![[selffetchedResultsController]performFetch:&error]){NSLog(@"Error!%@",error);abort();}这是我的fetchedResultsController:-(NSFetchedResultsController*)fetchedResultsController{if(_fetchedResultsController

iOS 10 Beta SDK - [UIDeviceRGBColor countByEnumeratingWithState :objects:count:]: unrecognized selector

当我们的iOS应用程序在iOS10DeveloperPreviewSDK上编译时,当启动应用程序的第一个ViewController时,应用程序崩溃并出现以下异常:***Terminatingappduetouncaughtexception'NSInvalidArgumentException',reason:'-[UIDeviceRGBColorcountByEnumeratingWithState:objects:count:]:unrecognizedselectorsenttoinstance0x17adb5a0'***Firstthrowcallstack:(0x23c9b

ios - NSManageObjectContext - 类不是键@count 的键值编码兼容

我有一个带有RestKit库和CoreData的iOS应用程序。自Xcode8以来,我可以看到比以前更多的日志,其中一个对我来说没有任何意义。error:AnobserverofNSManagedObjectContextDidSaveNotificationillegallythrewanexception.Objectssaved={inserted="{(\n)}";managedObjectContext="";updated="{(\n...)}";}andexception=[valueForUndefinedKey:]:thisclassisnotkeyvaluecodi

ios - Eureka : Dynamic height of custom row

我制作了一个自定义单元格,它应该只有一个UIImageView。更改图像时,单元格应更改高度以适合图像:importUIKitimportEurekapublicclassFirebaseImageCell:Cell,CellType{@IBOutletweakvarcustomImageView:UIImageView!publicoverridefuncsetup(){super.setup()}publicoverridefuncupdate(){super.update()guardletimage=row.valueelse{return}customImageView.im

Swift 和 CSVImporter : Only the first row of . 正在导入 csv

我正在尝试导入一个csv并使用CSVImporter对其进行解析。但是,当我打印对象数组的计数时,它只导入20行中的1行。我已经尝试使用CSVImporter示例中的“HeaderStructure”方法,但这给了我同样的问题。我认为这可能与CSV本身有关,也许特殊字符搞砸了,但我无法以任何方式更改CSV。letpath=Bundle.main.path(forResource:"Departments",ofType:"csv")letimporter=CSVImporter(path:path!)importer.startImportingRecords{recordValues