DirectoryViewController

Discussion in 'iOS Development' started by Ipodtouch97, Nov 6, 2008.

  1. Ipodtouch97

    Ipodtouch97 Banned

    Joined:
    Jun 24, 2008
    Messages:
    980
    Likes Received:
    0
    Can someone tell me how to make those Grey arrows next to a label like so:

    Please Register or Log in to view images



    i have a book but i get alot of errors when inputing the code.
    im using the Navigation-Based Application with a table view
  2. iRadiated

    iRadiated New Member

    Joined:
    Oct 5, 2008
    Messages:
    64
    Likes Received:
    0
  3. Ipodtouch97

    Ipodtouch97 Banned

    Joined:
    Jun 24, 2008
    Messages:
    980
    Likes Received:
    0
    hey thanks alot man

    Please Register or Log in to view images


    you got AIM?
  4. gojohnnyboi

    gojohnnyboi Well-Known Member

    Joined:
    Jan 25, 2008
    Messages:
    3,339
    Likes Received:
    55
    Code:
    tableCell.accessoryType = UITableViewCellAccessoryTypeDisclosureIndicator
    I THINK. that may be wrong
  5. Ipodtouch97

    Ipodtouch97 Banned

    Joined:
    Jun 24, 2008
    Messages:
    980
    Likes Received:
    0
    well i couldnt get the one that iRadiated gave me
    that code above, goes in the rootviewcontroller right?
  6. SkylarEC

    SkylarEC Super Moderator Emeritus Staff Member

    Joined:
    Sep 19, 2007
    Messages:
    6,642
    Likes Received:
    129
    Gjohnnyboi is right, it's
    cell.accessoryType = UITableViewCellAccessoryDisclosureIndicator;

    Since you're setting a specific cell's property, the best place to put it is where you create the cell. In the table's cellForRow property when you're setting up that specific cell.

    Other values your can use are:
    UITableViewCellAccessoryNone
    UITableViewCellAccessoryDetailDisclosureButton
    UITableViewCellAccessoryCheckmark



    EDIT: Also, those aren't arrows, they're chevrons.
  7. Ipodtouch97

    Ipodtouch97 Banned

    Joined:
    Jun 24, 2008
    Messages:
    980
    Likes Received:
    0
    so
    cell.accessoryType = UITableViewCellAccessoryDisclosureIndicator;
    goes where the cells controller is right?
    or am i wrong?

Share This Page