Subclassed UITableViewCell reuseIdentifiers are nil after loading from NIB.

Originator:jdandrea
Number:rdar://9891221 Date Originated:03-Aug-2011 04:10 PM
Status:Open Resolved:
Product:Developer Tools Product Version:4.0.2
Classification:Other Bug Reproducible:Always
 
Summary:

Given a NIB containing one or more subclassed UITableViewCell objects and reuseIdentifiers, upon loading, the reuseIdentifiers will be nil.

Steps to Reproduce:

1. In Xcode 4.0.2, create a UI (XIB) with at least one UITableViewCell object. Give each one a unique reuseIdentifier.
2. Create a boilerplate iOS app, loading the nib with loadNibNamed:owner:options: and assign the result to an NSArray.
3. Run/trace. Look at the objects in the resultant array. Verify that each is a kind of UITableViewCell and note its reuseIdentifier.
4. Next, create a subclass of UITableViewCell (no additional settings - just a plain subclass).
5. In the UI (XIB), set each table view cell's Custom Class to this new subclass.
6. Double check that the reuseIdentifier is still intact for each.
7. Repeat step 3.

Expected Results:

In both Step 3 and Step 7, each object should be a class of kind UITableViewCell, and its reuseIdentifier should be as originally set.

Actual Results:

In Step 7, reuseIdentifier is nil for all subclassed UITableViewCell objects.

Regression:

None known.

Notes:

No additional 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!