Collection View Cells not reused on iPhone 5s 7.0.3
Originator: | miles.chris | ||
Number: | rdar://15357491 | Date Originated: | 31-Oct-2013 |
Status: | Duplicate | Resolved: | 07-Nov-2013 |
Product: | iOS SDK | Product Version: | iOS 7.0.3 (11B511) |
Classification: | Other Bug | Reproducible: | Always |
Summary: UICollectionViewCells are not being reused when running on an iPhone 5s device with iOS 7.0.3. This behaviour differs to the same code running on iPad 4 or Simulator (7.0.3) where cells are reused properly. Steps to Reproduce: 1. Create a UICollectionView 2. Register a UICollectionViewCell nib or class with a reuse ID. 3. Use the standard API to dequeue reusable cells. 4. Add some debugging code (or breakpoints) to the UICollectionViewCell subclass to watch object lifecycle. Expected Results: A number of UICollectionViewCells should be created initially and then reused then on. The creation of new cells is not expected after enough cells have been created by the UICollectionView. Actual Results: On an iPhone 5s running iOS 7.0.3 our tests show that UICollectionViewCells are never reused. New cells are always created by the call to -dequeueReusableCellWithReuseIdentifier:forIndexPath:. However, this unexpected behaviour is unique to the iPhone 5s device (I hear iPhone 5 also suffers the same problem, although I haven't verified this). The same code running on an iPad 4 (7.0.3) or the iPhone Simulator (7.0 (463.9.4)) behave correctly (cells are reused). Version: iOS 7.0.3 (11B511) Notes: A sample iOS project is attached, demonstrating the problem. This may be a duplicate of rdar://15348611 Configuration: The problem has only been reproduced on an iPhone 5s running 7.0.3. iPad 4 (7.0.3) and iPhone Simulator (7.0 (463.9.4)) running the same code behave correctly. Attachments: 'collection-cell-radar.zip' was successfully uploaded. UPDATE: It turns out that collection view cells are not reused when Accessibility Shortcuts are enabled. i.e. Settings.app / General / Accessibility / Accessibility Shortcut (VoiceOver). If Accessibility Shortcuts are disabled and the collection view app re-launched, cells are reused as expected. If an Accessibility Shortcut is enabled (e.g. VoiceOver) and the collection view app is re-launched, cells are no longer reused. This was reproduced on both iPhone 5s and iPad 4 running 7.0.3 (11B511). 07-Nov-2013 Duplicate of 14569740
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!