解析本地XML文件時,我可以使用NSLog在控制檯中看到數據。在模擬器中,只有普通表格視圖沒有從xml解析任何數據。我不明白哪裏錯過了它。爲什麼表視圖不顯示iphone中的任何數據
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath: (NSIndexPath *)indexPath
{
static NSString *CellIdentifier = @"Cell";
UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier: CellIdentifier];
if(cell == nil){
cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellIdentifier];
cell.accessoryType = UITableViewCellAccessoryDisclosureIndicator;
}
theLists = [app.listArray objectAtIndex:indexPath.row];
cell.textLabel.text = theLists.title;
cell.accessoryType = UITableViewCellAccessoryDisclosureIndicator;
return cell;
}
請張貼代碼或現在你有足夠的聲譽,然後發佈圖片 –
發佈一些代碼,你在哪裏傳遞您的數據的tableview。 – spider1983
@sathya現在你可以發佈你的圖片,你想展示什麼。 – Debabrata