objective c - UICollectionViewCell hidden though I never set it hidden -
i'm quite amazed result lines:
[cell sethidden:no]; nslog(@"cell = %@", cell); nslog(@"hidden = %hhd", cell.hidden);
output:
2015-06-13 19:35:53.923 cell = <detailedsqeedcollectionviewcell: 0x145660b0; baseclass = uicollectionviewcell; frame = (-20 -49; 0 0); clipstobounds = yes; hidden = yes; opaque = no; layer = <calayer: 0x1582cd90>> 2015-06-13 19:35:53.923 hidden = 1
how possible, have clue?
thanks in advance.
i had problem. ios smart enough hide cells if underlying subviews, in case imageview's frame outside bounds , not showing. make sure if subviews have set.
you find if set background cell color not match uicollectionview, not shown hidden anymore.
Comments
Post a Comment