我有一個普通的tableview顯示plist內容的幾個部分和行。無論何時選擇一行,我都想在新的分組表格視圖中顯示該行的內容(如此完全相同的行)。有關如何實現這一目標的任何想法?在新的表格視圖中顯示選定的行
編輯:現在有這樣的代碼:
- (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;
}
是由模型對象支持的表中的行嗎? – aopsfan
行通過plist填充,包含一系列字典。每個字典都包含一行的信息。 – user1048042