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.
精彩评论