2012-09-15 31 views

回答

0
在你的tableview didSelectRowAtIndexPath方法方法

你可以把視圖

- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { 

     Otherview *otherview=[[Otherview alloc]initWithNibName:@"Otherview" bundle:nil]; 
     [self.navigationController pushViewController:otherview animated:YES]; 
     [otherview relese] 
     } 
0
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { 

DetailViewController *dvController = [[DetailViewController alloc] initWithNibName:@"DetailView" bundle:[NSBundle mainBundle]]; 
[self.navigationController pushViewController:dvController animated:YES]; 
[dvController release]; 
dvController = nil; 

} 
相關問題