ios - Inserting Subview Below UICollectionView -


when add subview below uicollectionview, subview shows above uicollectionview cells. here subview insertion code:

[self.collectionview insertsubview:self.garmentview atindex:0]; 

not sure if i'm not following best practice or otherwise missing obvious. assistance appreciated.

** edit ** might worth noting happens in landscape, when rightmost cell zoomed in.

i think

self.garmentview.layer.zposition = -1 [self.collectionview insertsubview:self.garmentview atindex:0]; 

will solve problem. guess can happen collection view cells gets added lower index garmentview. see question more thorough discussion subview positions.


Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -