点击UItableViewCell上的cell进入另一个页面

//点击cell时触发的事件.
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{
    DetailViewController *detailVC =[[DetailViewController alloc]init];
    [tableView cellForRowAtIndexPath:indexPath];
    detailVC.stu =[StudentHandle getStudentAtIndexPath:indexPath];
    [self.navigationController pushViewController:detailVC animated:NO];
    [detailVC release];
}

你可能感兴趣的:(ios开发)