Posted By


devb0yax on 06/23/10

Tagged


Statistics


Viewed 170 times
Favorited by 0 user(s)

crash didselectrow


/ Published in: iPhone
Save to your folder(s)



Copy this code and paste it in your HTML
  1. - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
  2. // Navigation logic may go here. Create and push another view controller.
  3.  
  4. ResultsDetailViewController *resultsDetailViewController = [[ResultsDetailViewController alloc] initWithNibName:@"ResultsDetailView" bundle:nil];
  5.  
  6. NSUInteger row = [indexPath row];
  7. NSArray *tempArr = [m_list objectAtIndex:row];
  8. NSString *tempStr = [tempArr description];
  9. NSLog(@"tempArr desc: %@", tempStr);
  10. resultsDetailViewController.m_detailDataArr = tempArr;
  11. //NSDictionary *tempDict = [NSDictionary dictionaryWithDictionary:(NSDictionary *)tempArr];
  12. //NSLog(@"tempDict desc: %@", [tempDict description]);
  13. //m_resultsDetailViewController.m_detailDict = tempDict;
  14.  
  15. //NSLog(@"resultsDetailViewController.m_detailDict: %@", [m_resultsDetailViewController.m_detailDict description]);
  16.  
  17. // Pass the selected object to the new view controller.
  18. [self.navigationController pushViewController:resultsDetailViewController animated:YES];
  19. [resultsDetailViewController release];
  20. resultsDetailViewController = nil;
  21. }

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.