今天出現(xiàn)了一個BUG,只要我的tableView設(shè)置了estimatedRowHeight。tableView滾動到底部,局部刷新時,tableView總是往上跑。
但是IOS8的self-sizing又必須設(shè)置estimatedRowHeight,沒辦法,只能用UITableViewCell+FDTemplateLayoutCell了。
UITableViewCell+FDTemplateLayoutCell計算高度使用cacheByIndexPath可以緩存高度,而且刷新時,會自動重新計算高度。
而使用cacheByKey更適合高度都一樣的靜態(tài)cell。