Hello all,
I have encountered a problem with opening a new table view with the click of a table view cell. When the cell is clicked, it just turns blue and doesn't switch views. Here is my code:
Code:
-(void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
if (tableView == [self rootTableView])
{
[self.view addSubview:editCardsView];
}
else if (tableView == [self editCardsTableView])
{
}
}
The current tableview that is being shown is called rootTableView, and when a cell from it is clicked, it should open up a view called editCardsView with another table view on it called editCardsTableView. The problem is, once the cell is clicked, it just freezes and stays highlighted/blue. It doesn't crash or anything either.
Help is very much appreciated, thank you!