目前我有一個(gè)UITableView,其中有大小的UITextView.單元格使用beginUpdates / endUpdates自動(dòng)調(diào)整大小,但是當(dāng)它執(zhí)行換行刷新時(shí)腐泻,tableView會(huì)進(jìn)行跳動(dòng)炉峰。
解決辦法:在執(zhí)行更新之前關(guān)閉動(dòng)畫,然后在更新后啟用,以防止UITableView發(fā)生口吃.
[UIView setAnimationsEnabled:NO];
[tableView beginUpdates];
[tableView endUpdates];
[UIView setAnimationsEnabled:YES];