我試圖從一個視圖控制器過渡到編程表視圖控制器(與用故事板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