I'm developing an iPhone app and have a cell object.
UITableViewCell *cell = [myTableView cellForRowAtIndexPath:indexPath];
But how do I GET the text from that cell?
If it's a cell that was created with one of the system cell types, it has a UILabel *
member called textLabel
. If you've created a custom cell type, you should set the tag
property of the relevant view (in IB or in code), then retrieve it using the viewWithTag:
method on your cell.
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.