我在這個問題上花了差不多一天的時間,有人請幫助我!我試圖從一個tableview控制器推動視圖。它沒有迴應。爲什麼NavigationController不在使用視圖?
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
NewsDetailViewController *ndvc = [[NewsDetailViewController alloc] initWithNibName:@"NewsDetailViewController" bundle:nil];
[self.navigationController pushViewController:ndvc animated:YES];
}
驗證ndvc不是零。驗證self.navigationController不是零。 – logancautrell
好吧,它似乎是零,它沒有進入。我該怎麼辦? – HardCode
「self.navigationController」爲零或「ndvc」爲零。項目中是否有導航控制器? – beryllium