UICollectionView doesn't remove cells when the cell contains first responder
| Originator: | jnjosh | ||
| Number: | rdar://13113345 | Date Originated: | 30-Jan-2013 02:11 AM |
| Status: | Open | Resolved: | |
| Product: | iOS SDK | Product Version: | 6.0/6.1 |
| Classification: | Bug | Reproducible: | Always |
When using UICollectionView to display cells with a UITextField, there seems to be a problem with the dequeuing process where it will force the text field to resign and draw the cell multiple times. This only appears to happen when the cell has a subview with a first responder and that cell is scrolled off screen. The dequeue process seems to create a new cell but still adding the old view. You can see this if the cell has a partially transparent background view. Sample Image: http://f.cl.ly/items/412e233Z1q0O0y3b2821/Screen%20Shot%202013-01-29%20at%2011.54.16%20AM.png Steps to Reproduce: 1. Create a project with a UICollectionView. 2. Add a cell with a text field 3. Set the cell to have a partially transparent image 4. Scroll the collection view forcing it do dequeue and reuse. Expected Results: Cells should be added once and not have mysterious cells in the background. Actual Results: It appears that multiple cells are stacked behind the current cell. Regression: n/a Notes: Sample code is available at: https://github.com/jnjosh/RadarSamples/tree/master/CollectionViewError
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!