In my application I'm adding a label to tableView cells using "cell addsubview" and not "cell.contentview addsubview". I'm assigning a tag to that label, but I'm not able to fetch it using "cell.contentView viewWithTag:1".
I perfectly understand that the label is not on contentView, but then how do I fetch it?
由于该标签是单元格的后代视图,而不是内容视图,因此请使用:
[cell viewWithTag:1]
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.