我试图从一个视图控制器过渡到编程表视图控制器(与用故事板SEGUE),使用此代码:断言错误使用pushViewController时将TableViewController
[self.navigationController pushViewController:photosTVC animated:YES];
不过,我得到表视图控制器加载时出现“断言错误”;具体而言,在此方法的第二行:使用SEGUE转变到它时
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
static NSString *CellIdentifier = @"Photo";
UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier forIndexPath:indexPath];
...
表视图控制器加载罚款,但只是不是当我过渡这种方式。任何想法,我可以尝试将非常感激!
感谢您的阅读。
编辑:完整的错误文本是如下:在
断言故障 - [UITableView的dequeueReusableCellWithIdentifier:forIndexPath:],/SourceCache/UIKit_Sim/UIKit-2372/UITableView.m:4460
什么是完整的错误? – rmaddy