/ Published in: iPhone
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
// Navigation logic may go here. Create and push another view controller. ResultsDetailViewController *resultsDetailViewController = [[ResultsDetailViewController alloc] initWithNibName:@"ResultsDetailView" bundle:nil]; NSUInteger row = [indexPath row]; 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; }