0

错误--->当我单击名称时应用程序崩溃...纠正--->当我单击表中的名称时,它应该跳转到另一个视图...

我的代码是

- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
    [ListArr objectAtIndex:indexPath.row];
    ListData *oList = [[ListData alloc] initWithNibName:@"ListData" bundle:nil];
    NSString *psCatId = [NSString stringWithFormat:@"%d",indexPath.row+1];
    oList.psId = psCatId;
    [self presentModalViewController:oList animated:YES];
    [oList release];    
}
4

0 回答 0