【问题标题】:UITableView tableFooterView may cause crash?UITableView tableFooterView 可能会导致崩溃?
【发布时间】:2013-09-17 07:21:43
【问题描述】:

我在UITableFooterView 中添加了一个UIButtonUITableFooterView。如果我触摸了这个按钮,操作就是为tableView 添加一个新单元格(“insertRowsAtIndexPaths”)。大多数时候它运行良好,但有时它可能会崩溃:

2013-02-04 15:00:56.139 browser2345HD[3156:c07] *** Assertion failure in -[UIViewAnimation initWithView:indexPath:endRect:endAlpha:startFraction:endFraction:curve:animateFromCurrentPosition:shouldDeleteAfterAnimation:editing:], /SourceCache/UIKit_Sim/UIKit-2372/UITableViewSupport.m:2596
2013-02-04 15:00:56.139 browser2345HD[3156:c07] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Cell animation stop fraction must be greater than start fraction'
*** First throw call stack:
(0x1e6a012 0x1c8fe7e 0x1e69e78 0x1419f35 0xb365df 0xb348f0 0xb358d8 0x970666 0x96cc67    0x978f95 0x978fc3 0x8ba4b 0x962fa73 0x9645c62 0x964683b 0x963015f 0x9700ac4 0x9700b09   0x96300c9 0x963e977 0x9630fd8 0x963eba7 0x963f393 0x963eba7 0x963f393 0x963eba7 0x963f393   0x963eba7 0x963f393 0x96f931d 0x973e387 0x9739717 0x9740ff3 0x1ddfbf5 0x1ddf962 0x1e10bb6   0x1e0ff44 0x1e0fe1b 0x2bd17e3 0x2bd1668 0x8cb65c 0x2955 0x2855)
libc++abi.dylib: terminate called throwing an exception
(lldb) 

谁能解决这个问题?

【问题讨论】:

    标签: iphone ios objective-c


    【解决方案1】:

    与此类似:UITableView : crash when adding a section footer view in empty section

    尝试使用下面部分的页眉而不是这个部分的页脚。

    祝你好运! :)

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2012-06-28
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2023-03-18
      • 1970-01-01
      • 2018-03-08
      • 2017-07-03
      相关资源
      最近更新 更多