If a UITableView ends with an empty section, the cell separator in the last cell of the last non-empty section will be visible
| Originator: | RichWChan | ||
| Number: | rdar://15160844 | Date Originated: | 05-Oct-2013 |
| Status: | Open | Resolved: | |
| Product: | iOS SDK | Product Version: | iOS 7.0 (11A465) |
| Classification: | UI | Reproducible: | Always |
Summary: Normally, provided that a UITableView has a footer, the cell separator of the last cell in the table will hide its cell separator (the gray line right beneath the cell). However, if the table ends with an empty section (e.g. with no cells or header title), that section itself will not be shown, but the separator of the last cell of the table will be visible. e.g. (screenshot of a table with an empty section at the end:) https://www.dropbox.com/s/7ybkf6p82i744s7/Screenshot%202013-10-05%2019.21.55.png (screenshot of a table with no empty section at the end:) https://www.dropbox.com/s/505u3qzc3tqmsrz/Screenshot%202013-10-05%2019.21.48.png Steps to Reproduce: 1. Create a table view whose data source provides all non-empty sections 2. Provide a `tableFooterView` 3. Run the app - notice the lack of a separator line at the last visible cell of the table 4. Modify the data source so there is now an empty section at the end, with no header title 5. Notice that there is now a separator line above the footer. Expected Results: I was expecting a consistent result when the empty section does not exist vs. if it does exist. (e.g. the separator line should either be visible in both cases, or neither). Actual Results: The separator line is visible if there is an empty section, but invisible otherwise. Version: iOS 7.0 (11A465)
Comments
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!