gpt4 book ai didi

ios - 删除 UITableView 中的行时 Tableview 崩溃 - 样式 :plain and section footers

转载 作者:可可西里 更新时间:2023-11-01 03:35:05 25 4
gpt4 key购买 nike

我有一个由 fetchedresultscontroller 支持的 tableview。当我删除导致 tableview 底行向上滚动的行时,电视不会填满整个屏幕,我在下面遇到崩溃。

这是我找到的解决方法

  1. 如果我将 tableview 更改为分组而不是普通 - 错误就会消失。
  2. 如果我删除部分页脚 - 错误就会消失。这对我来说不是可行的解决方法。

The error occurs after "controllerWillChangeContent" and prior to the "controllerDidChangeContent" - the code here is just copy/pasted from Apple's FRC protocol reference.

有人知道为什么会这样吗?由于它与 Grouped tableview 一起工作得很好,这似乎是一个 Apple 错误 - 但我想在报告之前我会先在这里询问。

Assertion failure in -[UIViewAnimation initWithView:indexPath:endRect:endAlpha:startFraction:endFraction:curve:animateFromCurrentPosition:shouldDeleteAfterAnimation:editing:], /SourceCache/UIKit_Sim/UIKit-2903.23/UITableViewSupport.m:26612014-03-08 17:13:29.226 workbox[7527:70b] CoreData: error: Serious application error. An exception was caught from the delegate of NSFetchedResultsController during a call to -controllerDidChangeContent:. Cell animation stop fraction must be greater than start fraction with userInfo (null)

Sample program

最佳答案

我已经在 github 上下载了你的项目,并在 iPad Air 上进行了测试。我点击了一些元素,甚至当应用程序应该向上滚动时,因为你有很多元素,根本没有问题/崩溃

我已经在 xCode 7.3.2 和 iPad Air 9.2 上进行了测试。模拟器

你能说说哪个设备崩溃了吗?

关于ios - 删除 UITableView 中的行时 Tableview 崩溃 - 样式 :plain and section footers,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22285446/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com