2012-05-20 224 views
0

我有一個視圖控制器與tableview,我會使任何新聞的行,總是去相同的看法。我試過了: cntrl +點擊第一個單元格的視圖,朝另一個視圖。 (故事板segues - 推)出現作爲一個新的箭頭髮生,但它並沒有使我的希望。 (我創建從一個數組表視圖)從一個視圖切換到另一個視圖

回答

0

你爲什麼不嘗試這樣的事:

- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath{ 
MyViewController *myViewControllerScreen = [[MyViewController alloc] init]; 
[[self navigationController] pushViewController:myViewControllerScreen animated:YES]; 
[myViewControllerScreen release]; 
} 

這將帶您始終以「MyViewController」

希望這是你'尋找

相關問題