dequeueReusableCellWithIdentifier fails under VoiceOver with prototype cells

Originator:bjhomer
Number:rdar://10550644 Date Originated:08-Dec-2011 01:31 PM
Status:Open Resolved:
Product:iPhone SDK Product Version:5.0
Classification:Crash Reproducible:Always
 
Summary:
In the "Converting to Storyboards Release Notes" document, it says the following:

The dequeueReusableCellWithIdentifier: method is guaranteed to return a cell (provided that you have defined a cell with the given identifier). Thus there is no need to use the “check the return value of the method” pattern as was the case in the previous typical implementation of tableView:cellForRowAtIndexPath:.

However, when VoiceOver is the one asking for cells, -dequeueReusableCellWithIdentifier returns nil. This breaks the assertion made by the above release notes.

An extremely simple repro case is attached.

Steps to Reproduce:
1. Turn on VoiceOver on your iPhone or iPod Touch.
2. Run the attached app.

Expected Results:
No crashes

Actual Results:
Crashes.

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!