How to call the didSelectRowAtIndexPath method again using the didSelectRowAtIndexPath method

I need to call the didSelectRowAtIndexPath method again in a UITableView inside the didSelectRowAtIndexPath method.

The code is as follows:

-(void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath 
{
          ------ --- ----
          ------ --- ----
          ------ --- ----
          ------ --- ----

    [tableView didSelectRowAtIndexPath:1];
}

If I used the code as before, it is not accepted.

Is there any way to call the method didSelectRowAtIndexPathinside the " didSelectRowAtIndexPath" method ?

+3
source share
1 answer

I think you wanted to call your delegate, not the table.

[self tableView:tableView didSelectRowAtIndexPath:indexPath];
+13
source

Source: https://habr.com/ru/post/1772272/


All Articles