How can I move to another view controller when the user clicks on a row?

前端 未结 9 1294
梦如初夏
梦如初夏 2020-12-21 17:41

I am new to iPhone development, and I want to move to another page when the user clicks on a particular row. So, if they click on first row, I want the page to redirect to t

9条回答
  •  北海茫月
    2020-12-21 18:20

    Easy:

    Create and push your view controller in this delegate function:

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

提交回复
热议问题