我在项目中使用了tableViewCell和plist文件以及数据。我想点击我所有的单元格进行活动。查看调用text.xib。代码:从表格视图单元格中推入视图
-(void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath{ test *testVar = [[test alloc] initWithNibName:@"test" bundle:nil];
if ([[countries objectAtIndex:indexPath.row] isEqual:[countries objectAtIndex:indexPath.row]]){
[testVar setTitle:@"Test"];
}
[self.navigationController pushViewController:testVar animated:YES];
[testVar release];
}
国家 - 我的日期排列,但它是tableViewCell的主要标签。