objective c - Apply check on tableViewCells to hide imageView -
in
tableview
, have 5tableview
cells
. each hasimageview
. outsidetableview
, there'suibutton
.uibutton
has image on it. now, issue check if image oncells
hidden or not. clearing issue, need check cells ifimageview
oncells
hidden or not. tried code :
(int i=0; i<=4; i++) { if (cell.unlockimageview.hidden) { nslog(@"calling if hiding image"); } }
i don't think code correct gave try , didn't work. please suggest me how check imageview on cells hidden or not?
try below code hope can you.
for (customtableviewcell* tblcell in tableview.visiblecells) { if (tblcell.unlockimageview.hidden) { nslog(@"imageview hidden"); } }
Comments
Post a Comment