iOS 11 Xcode9 tableview點擊cell上的按鈕cell自動往上跳動

列表需求是點擊cell時展開數據,佈局及cell高度更改。
iOS 11 上出現了向上跳動問題,多次嘗試以後無果,查詢後找到解決辦法:
    self.tableView.estimatedRowHeight = 0;
    self.tableView.estimatedSectionHeaderHeight = 0;
    self.tableView.estimatedSectionFooterHeight = 0;

特別鳴謝:老海明威老師
http://www.cocoachina.com/bbs/read.php?tid=1727023php

相關文章
相關標籤/搜索