UICollectionView only sets its backgroundView once per lifetime.
| Originator: | jerry | ||
| Number: | rdar://15485530 | Date Originated: | Nov 15, 2013 |
| Status: | Open | Resolved: | |
| Product: | iOS SDK | Product Version: | 7.0 |
| Classification: | Reproducible: | Always |
Summary: UICollectionView does not remove its current backgroundView when a new backgroundView is provided. The new backgroundView is added to the view hierarchy behind the originally provided view. Steps to Reproduce: 1. Setup a view hierarchy that includes a collection view 2. Set its backgroundView to an empty UIView with a red background 3. Set its backgroundView to an empty UIView with a blue background Expected Results: A blue background should be visible behind the collection view. Actual Results: A red background is visible behind the collection view. The red background initially provided. If you inspect the view hierarchy, the collection view also contains the blue view, behind the red view. Version: iOS 7 SDK.
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!