Setting UITableViewCell's detailTextLabel.text to nil causes the label to not appear when reused
| Originator: | stephen.groom | ||
| Number: | rdar://21668009 | Date Originated: | 03-Jul-2015 10:56 AM |
| Status: | Open | Resolved: | |
| Product: | iOS SDK | Product Version: | iOS 8.4 (8.4 SDK), iOS9 Simulator (9 SDK) |
| Classification: | Serious Bug | Reproducible: | Always |
Summary: Using a reusable cell with style UITableViewCellStyleSubtitle, if the detailTextLabel.text property is set to either @“” or nil future values of this property are never displayed. Steps to Reproduce: 1. Create a UITableViewCell of style UITableViewCellStyleSubtitle 2. Set it’s detailTextLabel.text property to nil or a zero length NSString 3. Set the property back to a NSString with a nonzero length Expected Results: The string set in Step 3 should be displayed onscreen in the cell’s detail label Actual Results: The cell shows a blank white space where the detail label is usually shown Notes: Test project attached. Tapping the cell should show/hide the detail text label of a cell but it is hidden and can’t be redisplayed
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!