0

I am using four tabs in my tabBar navigation, the third tab accesses Core Data to load a table which does get loaded successfully. I am having a problem creating a detail table. I have my detail nib file set up and connected. I also have the data set up and working. When I tap on a cell, it lights up but nothing happens. It doesn't even call up my detailViewController. I've been struggling with this for two days. If anyone has any ideas, please help - thanks

- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath 
{
    if (self.detailsView == nil) 
    {
        self.detailsView = [[TipsROTRDetailViewController alloc] 
                             initWithNibName:@"TipsROTRDetailViewController" bundle:[NSBundle mainBundle]];

    }
    TipsROTRInfo *info = [_fetchedResultsController objectAtIndexPath:indexPath];
    TipsROTRDetails *detailsText = info.details;

    self.detailsView.title = @"TIPS";
    self.detailsView.descriptionText =  detailsText.tipsText;
    //NSLog(@"Text: %@", self.detailsView.descriptionText); **I do get data here

    [self.navigationController pushViewController:self.detailsView animated:YES];
    //release it
    self.detailsView = nil;
}
John Sibly
  • 22,782
  • 7
  • 63
  • 80
LittlePeculiar
  • 383
  • 5
  • 16
  • I dont think the tabelview controller does not have a navigationcontroller of its own. Are you sure this class has a navigationController – visakh7 May 10 '11 at 10:53
  • Yes, it does, navigationController. And the outlet is connected to file owner in TipsROTRviewController. thanks for checking. – LittlePeculiar May 10 '11 at 15:31

1 Answers1

0

Check your frame size.

 NSLog(@" detail view frame: %f,%f %f x %f",detailsView.frame.origin.x,detailsView.frame.origin.y,
     detailsView.frame.size.width, detailsView.frame.size.height);

Maybe the size is 0 (or really small) or the x,y is off-screen.

Rayfleck
  • 12,116
  • 8
  • 48
  • 74