I am new to iPhone development. I have a view called barView which is added as the subview to the cell, I want to check for the condition like this
if(cell has a subview barview)
{
do something.......
}else
{
do something......
}
How can I check like this?
The simplest way is to give your
barviewa special tag:and then check with
Otherwise, you need to iterate through the
.subviewsarray and check if the property matches, e.g.