Revision: 27781
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at June 23, 2010 17:20 by devb0yax
Initial Code
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
// Navigation logic may go here. Create and push another view controller.
ResultsDetailViewController *resultsDetailViewController = [[ResultsDetailViewController alloc] initWithNibName:@"ResultsDetailView" bundle:nil];
NSUInteger row = [indexPath row];
NSArray *tempArr = [m_list objectAtIndex:row];
NSString *tempStr = [tempArr description];
NSLog(@"tempArr desc: %@", tempStr);
resultsDetailViewController.m_detailDataArr = tempArr;
//NSDictionary *tempDict = [NSDictionary dictionaryWithDictionary:(NSDictionary *)tempArr];
//NSLog(@"tempDict desc: %@", [tempDict description]);
//m_resultsDetailViewController.m_detailDict = tempDict;
//NSLog(@"resultsDetailViewController.m_detailDict: %@", [m_resultsDetailViewController.m_detailDict description]);
// Pass the selected object to the new view controller.
[self.navigationController pushViewController:resultsDetailViewController animated:YES];
[resultsDetailViewController release];
resultsDetailViewController = nil;
}
Initial URL
Initial Description
Initial Title
crash didselectrow
Initial Tags
Initial Language
iPhone