I have a UITableView with CustomCell. Custom cells contain UILabel and UIImageView.
I saw online that you can get text from a regular UITableView cell and save it in a row when the user clicks on the cell.
But how can you do this when using a custom cell? Exhaust my UILabel name is "type_label" and it was defined in the header file of my CustomCell XI file.
So in Xcode, I cannot use:
cell.type_label.text"
In the following function:
-(void)tableView:(UITableView *) tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
Thanks Dan.
source share