UITableView cell reuse not functional on 64 bit simulator

Originator:futuretap
Number:rdar://16395014 Date Originated:21-Mar-2014 10:04 PM
Status:Closed Resolved:
Product:iOS SDK Product Version:7.1
Classification:Serious Bug Reproducible:Always
 
Summary:
When allocating UITableViewCell's using the (old school) mechanism

    UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:@"Cell"];
    if (!cell) {
        cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:@"Cell"];
    }

they are never reused.


Steps to Reproduce:
Run the sample project https://www.dropbox.com/s/sgbohimdnjtp2uu/TableReuseTest.zip on the iOS 7.1 64-bit Simulator.
Add many cells using the + button. For each newly allocated (not reused) cell, a line is printed in the log.

Expected Results:
After adding 12 cells, there shouldn't appear any further lines in the log because UITableViewCells should be reused.

Actual Results:
Cells are never reused. For each tap on the + button, a new cell is allocated.

Notes:
The very same code works fine on 32 bit simulator and on 64-bit devices.

Comments

The problem was fixed after resetting the simulator. Strange nevertheless.


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!