2011-07-12 150 views

回答

1

簡單地創建一個新的視圖並推送didSelectRowAtIndexPath UITableView的委託方法。

例如,

- (void)tableView:(UITableView*)tableView didSelectRowAtIndexPath:(NSIndexPath*)indexPath{ 
    DetailViewController *vController = [[DetailViewController alloc] initWithNibName:@"DetailViewController" bundle:nil]; 
    [self.navigationController pushViewController:vController animated:YES]; 
    [vController release]; 
} 
相關問題