HELP with pushing a new view from a UITableViewCell

Discussion in 'iOS Development' started by abotsch31, Jun 30, 2009.

  1. abotsch31

    abotsch31 Banned

    Joined:
    Feb 9, 2009
    Messages:
    31
    Likes Received:
    0
    Hi,
    I am working on an app and right now I have a tableview that only has the cells and name of each cell in it and I am wanting to push a new view from each UITableViewCell. I am wanting it to be a scrollview with an image in it, and then a back button at the top that navigates back to the main tableview.

    Does anyone have any ideas on how I might do this?

    Thanks
    Abotsch31
  2. Steaps

    Steaps New Member

    Joined:
    Oct 24, 2007
    Messages:
    5,074
    Likes Received:
    41
    Device:
    iPod touch
    From the sample/template code Apple supplies when you create a "Navigation Based Application".

    Code:
    - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
    
        // Navigation logic may go here -- for example, create and push another view controller.
    	// AnotherViewController *anotherViewController = [[AnotherViewController alloc] initWithNibName:@"AnotherView" bundle:nil];
    	// [self.navigationController pushViewController:anotherViewController animated:YES];
    	// [anotherViewController release];
    }
    

Share This Page