Note that there are some explanatory texts on larger screens.

plurals
  1. POUITableView detail descripton error
    text
    copied!<p>I am using following way to send data to detail view controller for e.g if i have 3 rows in one section it works fine for row one but not for row two it gives error index beyond</p> <pre><code>- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { // [tableView deselectRowAtIndexPath:indexPath animated:YES]; Book1*aBook; if(indexPath.section == 0) { aBook=[appDelegate.books1 objectAtIndex:indexPath.row]; int count=[appDelegate.books1 count]; } else if(indexPath.section == 1) { aBook=[appDelegate.books2 objectAtIndex:indexPath.row]; } else if(indexPath.section == 2) { aBook=[appDelegate.books3 objectAtIndex:indexPath.row]; } else if(indexPath.section == 3) { aBook=[appDelegate.books4 objectAtIndex:indexPath.row]; } else if(indexPath.section == 4) { aBook=[appDelegate.books5 objectAtIndex:indexPath.row]; } else if(indexPath.section == 5) { aBook=[appDelegate.books6 objectAtIndex:indexPath.row]; } else if(indexPath.section == 6) { aBook=[appDelegate.books7 objectAtIndex:indexPath.row]; } else if(indexPath.section == 7) { aBook=[appDelegate.books8 objectAtIndex:indexPath.row]; } else if(indexPath.section == 8) { aBook=[appDelegate.books9 objectAtIndex:indexPath.row]; } else if(indexPath.section == 9) { aBook=[appDelegate.books10 objectAtIndex:indexPath.row]; } NSString*eventId=aBook.eventId; NSLog(eventId); // int next= [aBook.affecteddate intValue]; NSString*affecteddate = aBook.affecteddate; //affecteddate = [NSString stringWithFormat:@"%d", aBook.affecteddate]; NSLog(affecteddate); DetailViewController *dvController = [[DetailViewController alloc] initWithNibName:@"DetailViewController" bundle:nil]; dvController.eventId=eventId; dvController.affecteddate=affecteddate; [self.navigationController pushViewController:dvController animated:YES]; [dvController release]; </code></pre>
 

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