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
Post a Comment