UITableViewController crashes if VoiceOver is active and Storyboard is used

Originator:chbeer78
Number:rdar://10675427 Date Originated:11-Jan-2012 12:02 PM
Status:Open Resolved:
Product:iPhone SDK Product Version:5.1 / 9B5141a
Classification:Serious Bug Reproducible:Always
 
11-Jan-2012 12:02 PM Christian Beer:
Summary:
An app that's using storyboard or -[UITableView registerNib:forCellReuseIdentifier:] to define table view cells crashes when VoiceOver is active:

*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'UITableView dataSource must return a cell from tableView:cellForRowAtIndexPath:'

The reason for this crash is -[UITableView dequeueReusableCellWithIdentifier:] returns nil if VoiceOver is active. It returns the cell as expected if VoiceOver is not active.


Steps to Reproduce:
- Clone my example project:
    https://github.com/chbeer/AccessibilityLanguage-Test
- Make sure the workaround in -tableView:cellForRowAtIndexPath: is not active ("if (!cell).." is commented out)
- Activate VoiceOver on your iPhone
- Execute the project


Expected Results:
App works as expected and show table view.


Actual Results:
App crashes:

*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'UITableView dataSource must return a cell from tableView:cellForRowAtIndexPath:'


Regression:

Notes:

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!