Make a Detail view for a UITableView

Discussion in 'iPad Development' started by pixelcab, Feb 10, 2011.

  1. pixelcab

    pixelcab
    Expand Collapse
    iPF Noob

    Joined:
    Feb 10, 2011
    Messages:
    1
    Thanks Received:
    0
    Hi guys,

    I been looking for days into google to try to make this without luck.
    I have a UITableView and I when the user tap over one cell I want to show the details in a new view. Seems very basic function but is making me crazy.

    Any of you have an example of how to make this?

    thanks!
     
  2. bartekhugo

    bartekhugo
    Expand Collapse
    iPF Noob

    Joined:
    Mar 21, 2011
    Messages:
    4
    Thanks Received:
    0
    but what kind of a view? standard popover with arrow? modal view? custom view?

    anyway you have a method tableView:didSelectRowAtIndexPath: where you can present your view...
     
  3. rwenderlich

    rwenderlich
    Expand Collapse
    iPF Novice

    Joined:
    Mar 24, 2011
    Messages:
    11
    Thanks Received:
    0
    Try searching "how to make a simple iphone app part 1/3" in google :]
     
  4. appzapp

    appzapp
    Expand Collapse
    iPF Noob

    Joined:
    May 10, 2011
    Messages:
    3
    Thanks Received:
    0
    Hi,

    you have to implement the following method of the table view

    Code:
    -(void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
    in there you just build the Viewcontoller you want and push it to your navigationController. Something like this:

    Code:
    YourViewControllerClass *viewController = [[YourViewControllerClass alloc]initWithNibName:@"YourViewControllerXib" bundle:nil];
            [self.navigationController pushViewController:viewController animated:YES];        
            [viewController release];    
    Hope this helps
     

Share This Page



Search tags for this page
detail view controller with tableview
,
details uitableview
,
making a detail uitableview
,
uitableview – loading a detail view
,

uitableview and detail view

,
uitableview apple detail
,
uitableview details example