UICollectionView adds Multiple Decoration Views

Originator:ash.furrow
Number:rdar://13005061 Date Originated:January 13, 2013
Status:Open Resolved:
Product:iPhone SDK Product Version:iOS 6.0
Classification:Bug (Other) Reproducible:Always
 
13-Jan-2013 09:23 PM Ash Furrow:
Summary:

When layout out multiple sections, each with one decoration view, the first section has an additional decoration view added under neath of it for each of the remaining sections. So, if I have 4 sections, section 0 has 4 decoration views, section 1 has 3, section 2 has 2, and section 3 has 1. This totals 10 decoration views initialized and on-screen, being rendered.

I can produce this both visually ( http://i.stack.imgur.com/bQ21o.png ) and also by printing a recursive description of the collection view.

   | <AFDecorationView: 0x719ee50; baseClass = UICollectionReusableView; frame = (0 65; 768 208.125); alpha = 0; hidden = YES; layer = <CALayer: 0x719eec0>>
   | <AFDecorationView: 0x71ad980; baseClass = UICollectionReusableView; frame = (0 333.125; 768 203.281); alpha = 0; hidden = YES; layer = <CALayer: 0x71adb60>>
   | <AFDecorationView: 0x71afc90; baseClass = UICollectionReusableView; frame = (0 65; 768 208.125); layer = <CALayer: 0x71afd60>>
   | <AFDecorationView: 0xd79ac30; baseClass = UICollectionReusableView; frame = (0 596.406; 768 203.281); alpha = 0; hidden = YES; layer = <CALayer: 0xd79ad00>>
   | <AFDecorationView: 0xd79cf20; baseClass = UICollectionReusableView; frame = (0 333.125; 768 203.281); layer = <CALayer: 0xd79cff0>>
   | <AFDecorationView: 0xd79dac0; baseClass = UICollectionReusableView; frame = (0 65; 768 208.125); layer = <CALayer: 0xd79a980>>
   | <AFDecorationView: 0xd794fd0; baseClass = UICollectionReusableView; frame = (0 859.688; 768 225.938); layer = <CALayer: 0xd7950a0>>
   | <AFDecorationView: 0xd7a1300; baseClass = UICollectionReusableView; frame = (0 596.406; 768 203.281); layer = <CALayer: 0xd7a13d0>></CALayer:>
   | <AFDecorationView: 0xd7a35d0; baseClass = UICollectionReusableView; frame = (0 65; 768 208.125); layer = <CALayer: 0xd794470>>
   | <AFDecorationView: 0xd7a43e0; baseClass = UICollectionReusableView; frame = (0 333.125; 768 203.281); layer = <CALayer: 0xd7a44b0>>


Steps to Reproduce:

Add sections, one at a time, to the data source and collection view. Each section has 1 decoration view.

Expected Results:

Each section has only 1 decoration view.

Actual Results:

Each section has n decoration views, where n is the number of proceeding sections in the collection view.


13-Jan-2013 09:23 PM Ash Furrow:
'bug.zip' was successfully uploaded

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!