我有一个简单的tableview显示几个部分和行与plist的内容。 每当选择一行时,我想在新的分组tableview中显示该行的内容(所以完全相同的行)。 有关如何实现这一点的任何想法?
编辑:现在有这个代码:
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{
NSDictionary *selectedMatch = [self.matchesArray objectAtIndex:indexPath.row];
NSLog(@"%@", [selectedMatch description]);
NSLog(@"IndexPath: %@", [indexPath description]);
DetailTableViewController *dvController = [[DetailTableViewController alloc] initWithNibName:@"DetailViewController" bundle:[NSBundle mainBundle]];
dvController.selectedMatch = selectedMatch;
[dvController release];
dvController = nil;
}