Storyboard editor should not delete cells when switching between static and dynamic content

Originator:kristopherdjohnson
Number:rdar://14946185 Date Originated:09-Sep-2013 02:41 PM
Status:Open Resolved:
Product:Developer Tools Product Version:4.6.3
Classification:UI/Usability Reproducible:Always
 
Summary:
I have a storyboard with a table view that currently has static cells in several sections. I have a new requirement that means I need to dynamically hide/show cells based upon application state, so the logical thing to do would be to change the table view to use dynamic cell prototypes instead of a static cell layout.

Unfortunately, when I change the table view's Content property from "Static Cells" to "Dynamic Prototypes", all of the cell prototypes outside of the first section disappear, and I have to recreate them as new cell prototypes, which is time-consuming and error-prone.

It would be nice if switching between Static Cells and Dynamic Prototypes would retain the existing cells.

Steps to Reproduce:
1. Create a new project that uses storyboards
2. Create a table view controller, set the content type to "Static Cells", set the number of sections to a value greater than 1, and add cells to the sections.
3. Change the content type to "Dynamic Prototypes".

Expected Results:
I would expect that all the cells I created will still be present as cell prototypes.

Actual Results:
All cells outside of the first section are deleted and cannot be recovered.

Version:
Xcode 4.6.3

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!