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

Popular posts from this blog

facebook - android ACTION_SEND to share with specific application only -

python - Creating a new virtualenv gives a permissions error -

javascript - cocos2d-js draw circle not instantly -