I use the interface tag function to access some UILabels that I create in the xib file. Since this is a UITextViewCell, I want to avoid unnecessary method calls, but I also want to do it right. Thus, when I do this:
UILabel *label = (UILabel *)[cell viewWithTag:1];
I am wondering if I need to wrap it like this:
if([[cell viewWithTag:1] isKindOfClass [UITableViewCell class]]) { UILabel *label = (UILabel *)[cell viewWithTag:1]; }
Any discussion on this issue would be appreciated.
thanks
source share