UITableView help

Discussion in 'iOS Development' started by eldavo, Aug 28, 2009.

  1. eldavo

    eldavo New Member

    Joined:
    Mar 21, 2009
    Messages:
    278
    Likes Received:
    0
    Device:
    iPhone 3GS (Black)
    I tryed the other threads and they were to complicated for me.
    I like things slow.

    Anyway. I followed http://www.servin.com/iphone/uidevice/iPhone-UIDevice.html To make a TableView but instead of UIDevice propertys I just put in my own cell things.

    Now, how can I make it when you click one it goes to another view, and how do I put a navigation bar on it without messing it all up.
    P.S Dont worry about that Orientation thingo.
  2. Steaps

    Steaps New Member

    Joined:
    Oct 24, 2007
    Messages:
    5,074
    Likes Received:
    41
    Device:
    iPod touch
    If you're using the SDK, just create a navigation based application. It provides all the table view, and commented out, is the code to switch to a view when a cell is tapped.

    [OBJC]
    - (void)tableView

    Please Register or Log in to view images

    UITableView *)tableView didSelectRowAtIndexPath

    Please Register or Log in to view images

    NSIndexPath *)indexPath {
    DetailView *detailView = [[DetailView alloc] initWithNibName

    Please Register or Log in to view images

    "DetailView" bundle:nil];
    [self.navigationController pushViewController:detailView animated:YES];
    [detailView release];
    }
    [/OBJC]
  3. eldavo

    eldavo New Member

    Joined:
    Mar 21, 2009
    Messages:
    278
    Likes Received:
    0
    Device:
    iPhone 3GS (Black)
    Yes, but I also want it to be tabbed.
    Thanks, i'll look at it anyway.
  4. Steaps

    Steaps New Member

    Joined:
    Oct 24, 2007
    Messages:
    5,074
    Likes Received:
    41
    Device:
    iPod touch
    I also posted the code you wanted...
  5. eldavo

    eldavo New Member

    Joined:
    Mar 21, 2009
    Messages:
    278
    Likes Received:
    0
    Device:
    iPhone 3GS (Black)
    Yeah, i know.
    But If i go navigation controller then I try to put a tab bar on the bottom, it screws it up.
  6. SkylarEC

    SkylarEC Super Moderator Emeritus Staff Member

    Joined:
    Sep 19, 2007
    Messages:
    6,642
    Likes Received:
    129
  7. Steaps

    Steaps New Member

    Joined:
    Oct 24, 2007
    Messages:
    5,074
    Likes Received:
    41
    Device:
    iPod touch

Share This Page