![](/img/trans.png)
[英]change iPhone tableview cell label text on didSelectRowAtIndexPath
[英]Fetch a label from tableView cell iphone sdk
在我的應用程序中,我使用“ cell addsubview”而不是“ cell.contentview addsubview”為tableView單元添加標簽。 我正在為該標簽分配標簽,但無法使用“ cell.contentView viewWithTag:1”來獲取標簽。
我完全理解標簽不在contentView上,但是如何獲取它呢?
由於該標簽是單元格的后代視圖,而不是內容視圖,因此請使用:
[cell viewWithTag:1]
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.