I have a UITableView named "TaskTable" and I add a label in the content view of each TaskTable cell in this method
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
My label shortcut is 50, and I use the built-in table cell for this custom cell.
now when i try to remove my table from TaskTable with this code:
for(UILabel *lbl in [cell subviews])
{
if(lbl.tag == 50)
{
[lbl removeFromSuperview];
}
}
Code is not included in this if condition. Why doesn't he find a shortcut? Is this because I use a built-in cell that only finds its own text shortcut, or is there some other problem that I am missing?
source
share