Note that there are some explanatory texts on larger screens.

plurals
  1. POUITableView Does not show data in ipad app
    text
    copied!<p>I have ipad app in which i am using tableView to show data but problem is that it does not show data in tableView here is code for setting cell value</p> <pre><code>- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { static NSString *CellIdentifier = @"Cell"; UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier]; if (cell == nil) { cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleSubtitle reuseIdentifier:CellIdentifier] autorelease]; cell.selectionStyle = UITableViewCellSelectionStyleBlue; } if (tableView == tableCategory) { cell.textLabel.font=[UIFont fontWithName:@"Arial" size:16]; cell.textLabel.textAlignment=UITextAlignmentLeft; ObjectData*theCellData = [categoryArray objectAtIndex:indexPath.row]; cell.textLabel.text=theCellData.categoryTitle; return cell; } else if (tableView == tableSubCategory) { cell.textLabel.font=[UIFont fontWithName:@"Arial" size:16]; cell.textLabel.textAlignment=UITextAlignmentLeft; ObjectData*theCellData = [subCategoryArray objectAtIndex:indexPath.row]; NSString *test = theCellData.subCategoryTitle; NSLog(@"Test Cell is %@",test); cell.textLabel.text = test; return cell; } else if(tableView == tablePublish) { cell.textLabel.font = [UIFont fontWithName:@"Arial" size:16]; cell.textLabel.textAlignment = UITextAlignmentLeft; GetPublishData *theCellData = [publishArray objectAtIndex:indexPath.row]; NSString *test = [NSString stringWithFormat:@"%@:%@:%@ in:%@:%@",theCellData.UserName,theCellData.ContentTitle,theCellData.ContentType,theCellData.Catgeory,theCellData.SubCategory]; NSLog(@"Test Cell is %@",test); cell.textLabel.text = test; cell.detailTextLabel.text = theCellData.ContenAddedTime; return cell; } else { cell.textLabel.font = [UIFont fontWithName:@"Arial" size:16]; cell.textLabel.textAlignment = UITextAlignmentLeft; GetPublishData *theCellData = [publishArray objectAtIndex:indexPath.row]; NSString *test = theCellData.ContentDescription; cell.textLabel.text = test; return cell; } } </code></pre> <p>I have tableView delegate and dataSource but still does not show anything while check count in array it shows items in it but does not show data in tableview the data which i am showing for else table is not working </p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload