In my
tableView
, I have 5tableView
cells
. Each has animageView
. OutsidetableView
, there's aUIButton
.UIButton
also has image on it. Now, my issue is to check if the image oncells
is hidden or not. Clearing the issue, I need to check for all the cells that ifimageView
on all thecells
is hidden or not. I tried this code :
for (int i=0; i<=4; i++)
{
if (cell.unlockImageView.hidden)
{
NSLog(@"calling if for hiding image");
}
}
I don't think my code is correct but I gave it a try and it didn't work. So please suggest me how to check that imageView on all cells is hidden or not?
Try the below code hope it can help you.
for (customTableViewCell* tblCell in tableView.visibleCells)
{
if (tblCell.unlockImageView.hidden)
{
NSLog(@"Imageview is hidden");
}
}