开发者

iPhone: Find UITableViewCell using a UILabel

I have a UITableView that has about 20 cells. Each has a UILabel within, and I need to search and find the cell that has the label @"Test".

开发者_运维知识库

Is there a way to loop through the cells and search for the NSString @"Test"?


No. You should not inspect the table view cells. Instead you should look in your data source that is providing the contents of those labels.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜