推零視圖控制器我得到了下面的錯誤:應用程序嘗試對目標
Application tried to push a nil view controller on target UINavigationController: 0x7b98940.
當我「點擊」的UITableViewController
的電池它引起的。 代碼:
#pragma mark - Table view delegate
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{
VerifyInfoViewController *verifyInfoVC = [self.storyboard instantiateViewControllerWithIdentifier:@"verifyInfoVC"];
[self.navigationController pushViewController:verifyInfoVC animated:YES];
}
您是否在故事板中將您的VerifyInfoViewController的Storyboard ID設置爲verifyInfoVC? –
是的,但它仍然無效... – rulilg