UITableView footers are not positioned correctly when using estimatedHeightForRowAtIndexPath

Originator:padraig.kennedy
Number:rdar://15117851 Date Originated:30-Sep-2013 07:21 PM
Status:Closed Resolved:03-Jun-2014
Product:iOS SDK Product Version:7.0.2
Classification:UI/Usability Reproducible:Always
 
Summary:
The UITableView tableViewFooter (note: not section footers) is positioned according to the values returned by estimatedHeightForRowAtIndexPath. When you scroll to the bottom of the table, it does to reposition it according to the accurate heightForRowAtIndexPath values.

I have attached a sample project based on the Master-Detail sample project with an added tableFooterView + implementation of estimatedHeightForRowAtIndexPath.

Steps to Reproduce:
1. Create a UITableView with more cells than fit on the screen.
2. Implement estimatedHeightForRowAtIndexPath and heightForRowAtIndexPath, but return different values from them.
3. Add a tableViewFooter.
4. Run the app, scroll down to the footer — it will be positioned incorrectly until the table is redrawn.

Expected Results:
The footer should be positioned correctly based on the values returned by heightForRowAtIndexPath.

Actual Results:
The footers position is set based on the estimatedHeightForRowAtIndexPath values and is not updated.

Version:
iOS 7.0.2, Xcode 5A1413

Notes:


Configuration:


Attachments:
'TableViewFooter.zip' was successfully uploaded.

Comments

We believe this issue has been addressed. Please verify with iOS 8 beta (Build 12A4265u) release, and reply back with your results.

iOS 8 beta (Build 12A4265u) https://developer.apple.com/devcenter/ios/index.action Posted Date: June 2, 2014

If this issue is still occurring, please include any relevant logs, and or a test case with your update.

Logging Instructions/Test Case Requirements: https://developer.apple.com/bug-reporting/ios/

By padraig.kennedy at July 31, 2014, 4:23 p.m. (reply...)

Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!