Displaying a image in the next view when a cell is tapped

Discussion in 'iOS Programming' started by iPhone 62S, Nov 24, 2009.

  1. macrumors 6502a

    iPhone 62S

    Aug 18, 2009
    How do I display a different image in the next view for different cells in a cellView? For example, I click cell one, and image one is displayed next, I hit cell two and image two shows next, etc.

    I can already make it show the same image for every cell, but that's useless.

    Any help from those more experienced?
  2. macrumors 6502

    Jun 19, 2008
    St Louis
    Sorry, not exactly sure what you're asking. Are you looking for help with logic to figure out which image to show, so that you don't have to hard-code the image names?

    Will there be a variable number of images? Are you trying to determine how many images are in a location, and then create and display a matching number of cells, and then automatically link to the appropriate image?
  3. Moderator


    Staff Member

    Sep 2, 2004
    The Centennial State
    cellView? iPhone has no such thing. Do you mean UITableView?
  4. thread starter macrumors 6502a

    iPhone 62S

    Aug 18, 2009
    I'm asking for help getting it to show the image I want. I already have a system like that for the text, so the text in the cell is displayed in the next view. However, I don't want that with the images because the images on the cells are only thumbnails, and I wanted to display a larger version in the next view. So I need a system that will look at the cell being selected and display the image I set for each cell, if you what I'm trying to say.

    And yes, I did mean UITableView, sorry about that!

Share This Page