在 iOS7 中折叠单元格时崩溃并显示错误消息:
- Assertion failure in -[UIViewAnimation initWithView:indexPath:endRect:endAlpha:startFraction:endFraction:curve:animateFromCurrentPosition:shouldDeleteAfterAnimation:editing:]
- 'Cell animation stop fraction must be greater than start fraction'.
如何解决此问题?
我遇到了同样的问题。尝试在以下方法中返回 0 而不是其他任何内容,它不会再崩溃了。
- (CGFloat)tableView:(UITableView *)tableView heightForFooterInSection:(NSInteger)section {
//return 0.001f;
return 0;
}
希望这有帮助。
我遇到了同样的问题。
在iOS7上很少有事情导致这个卡拉什
-
UITableViewStyle
页 眉/页脚视图高度
要解决此问题:
你能试试吗:
一:
- (id)initWithStyle:(UITableViewStyle)style
{
self = [super initWithStyle:UITableViewStyleGrouped];
if (self)
{
}
return self;
}
二:
- (CGFloat)tableView:(UITableView *)tableView heightForFooterInSection:(NSInteger)section {
return 5;
}
- (CGFloat) tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger)section
{
return CGFLOAT_MIN;
}
这似乎是一个错误。 我发现将表格样式更改为分组可以阻止崩溃:
- (id)initWithStyle:(UITableViewStyle)style
{
self = [super initWithStyle:UITableViewStyleGrouped];
if (self)
{
}
return self;
}
或者,您可以更改故事板中的石碑。