ok here is the code
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
#pragma mark parse DetailXml
//XMLAppDelegate *appDelegate=(XMLAppDelegate*)[UIApplication sharedApplication].delegate;
Book *aBook = [appDelegate.books objectAtIndex:indexPath.row]; i need this to get id form XMLa
**uuidd=aBook.uniqueId;** this i need
if(bdvController == nil)
// Book *aBook = [appDelegate.books objectAtIndex:indexPath.row];
bdvController = [[BookDetailViewController alloc] initWithNibName:@"BookDetailView" bundle:[NSBundle mainBundle]];
//XMLAppDelegate *appDelegate=(XMLAppDelegate*)[UIApplication sharedApplication].delegate;
//Book *aBook = [appDelegate.books objectAtIndex:indexPath.row];
DetailXml *aDetail=[appDelegate.dxml objectAtIndex:indexPath.row];**i want this as my next table secition view will be based on this XMlb but i am gettingf index out of bound
bdvController.aDetail = aDetail;**
then here xml paresing is done then this
[self.navigationController pushViewController:bdvController animated:YES];
}
i am getting index Out of bound if i do this DetailXml aDetail=[appDelegate.dxml objectAtIndex:indexPath.row];