Repository: incubator-weex Updated Branches: refs/heads/master dd8b7e1a8 -> 05a32d881
[WEEX-119][iOS] disable tableview estimation row or section height. according to https://stackoverflow.com/questions/46445661/ios-11-uitableview-behaviour-changed/46447370#46447370 https://forums.developer.apple.com/message/245686 this estimation action will make tableview edit abnormal, crash sometimes so disable it from iOS 11. Bug: 119 Project: http://git-wip-us.apache.org/repos/asf/incubator-weex/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-weex/commit/ada7945e Tree: http://git-wip-us.apache.org/repos/asf/incubator-weex/tree/ada7945e Diff: http://git-wip-us.apache.org/repos/asf/incubator-weex/diff/ada7945e Branch: refs/heads/master Commit: ada7945ec8b4c4e1b3c73ef47a41c1ef08d29c54 Parents: 4269d24 Author: acton393 <zhangxing610...@gmail.com> Authored: Wed Nov 15 16:22:01 2017 +0800 Committer: acton393 <zhangxing610...@gmail.com> Committed: Wed Nov 15 16:22:01 2017 +0800 ---------------------------------------------------------------------- ios/sdk/WeexSDK/Sources/Component/WXListComponent.m | 4 ++++ 1 file changed, 4 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/ada7945e/ios/sdk/WeexSDK/Sources/Component/WXListComponent.m ---------------------------------------------------------------------- diff --git a/ios/sdk/WeexSDK/Sources/Component/WXListComponent.m b/ios/sdk/WeexSDK/Sources/Component/WXListComponent.m index 7c4fe68..1e3e5e5 100644 --- a/ios/sdk/WeexSDK/Sources/Component/WXListComponent.m +++ b/ios/sdk/WeexSDK/Sources/Component/WXListComponent.m @@ -155,6 +155,10 @@ _tableView.delegate = self; _tableView.dataSource = self; _tableView.userInteractionEnabled = YES; + + _tableView.estimatedRowHeight = 0; + _tableView.estimatedSectionFooterHeight = 0; + _tableView.estimatedSectionHeaderHeight = 0; } - (void)viewWillUnload