我將一列收藏夾 - 從詳細信息視圖 - 傳遞給(應該是)一個顯示收藏夾的表視圖。 第一個數組[在第一視圖]是好的:數組對象正在加載但未連接到單元格
Array found. Contents: (
"\U5df4",
"\U5df4",
"\U82ad\U8305//\U5df4\U8305",
"\U5df4\U5bb6",
"\U7b06\U7bd3\U513f",
"\U5df4",
"\U5df4",
"\U5df4",
"\U5df4",
"\U5df4",
"\U5df4\U5bb6",
"\U5df4",
"\U5df4",
"\U5df4"
)
Number of items in my array is: 15
和[在第二視圖從所述第二陣列]在打印:
Printing description of self->FavsTwo:
<__NSCFArray 0x1f9644a0>(
巴,
巴,
芭茅//巴茅,
巴家,
笆簍兒,
巴,
巴,
巴,
巴,
巴,
巴家,
巴,
巴,
巴,
巴家
)
還爽...
首破我得到的是在這裏:
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
{
return [FavsTwo count];
}
,然後所有這些錯誤:
*** Assertion failure in -[UITableView _configureCellForDisplay:forIndexPath:], /SourceCache/UIKit_Sim/UIKit-2903.2/UITableView.m:6235
*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'UITableView dataSource must return a cell from tableView:cellForRowAtIndexPath:'
***
我的手機是這樣的:
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
static NSString *CellIdentifier = @"Cell";
UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
NSString *cellValue = [self.FavsTwo objectAtIndex:indexPath.row];
cell.textLabel.text = cellValue;
return cell;
}
試圖將對象轉換爲字符串 - 真的不知道在那裏它的失敗
歡呼
你得到解決? –
@Himanshu Joshi都在下面的工作來加載表,但我仍然在行數崩潰 - 返回[FavsTwo計數]; * FIRST *單擊繼續在調試獲取它加載.... – user3306356
你記錄'[FavsTwo計數];'? –