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 -

python - Django-cities exits with "killed" -

python - How to get a widget position inside it's layout in Kivy? -