forkingdog / UITableView-FDTemplateLayoutCell

Template auto layout cell for automatically UITableViewCell height calculating
MIT License
9.94k stars 2.01k forks source link

- (CGFloat)fd_heightForCellWithIdentifier:(NSString *)identifier configuration:(void (^)(id cell))configuration计算出的高度不正确 系统是10.2 #294

Closed ghost closed 7 years ago

openUmbrella commented 7 years ago

你使用masonry布局吗?如果你按着以前的写法出错了,你需要在关键这行代码里面make.bottom.equalTo(self.bottomLine).priority(999);加上.priority(999); 加上一个优先级.

ghost commented 7 years ago

是的 我试试看 thank you

ghost commented 7 years ago

试过了 不行的

ghost commented 7 years ago

第一次刷新数据 计算出的高度正确 再刷新一次 高度就错了 ,然后再次刷新 高度正确 ,继续刷 又错了。。。。。。。。也就是奇次刷新高度正确 偶次刷新,高度就是错的

JiaLiangoooo commented 7 years ago

是不是有的一行出现半边?

AlianOL commented 7 years ago

我遇到的类似的问题,我的是前几次计算的正确(就是第一次走回调的时候,那次的高度正确),但是第二次走回调函数的时候,那次的高度就出错了,我没有用masnory,我用xib设置的约束,并且只有在5 5s上高度计算的没问题。。在se 6 6p上面就出错,只计算了一行

ghost commented 7 years ago

不一定是半边 。试过了,在ios9没问题的

weekwood commented 7 years ago

@yxg1360634255, please try to update to 1.6.beta see if it works, sorry for the inconvenience.