I have a parent UIView with a number of subviews. Periodically I need to remove a subview and completely remove it from the system. What is the correct way to do this? I tried t
Is it possible that cell.contentView has the same tag as the subview you want to remove? according to the documentation viewWithTag removes:
The view in the receiver’s hierarchy that matches tag. The receiver is included in the search.
If this is the case then you may be inadvertently removing cell.contentView from the cell. If n is zero and your cell's contentview has no tag set to it, it would default to 0 and cause that to happen.