Pictures in IUTableView?

Discussion in 'iOS Programming' started by iLoveDeveloping, Dec 10, 2009.

  1. iLoveDeveloping macrumors 6502

    Sep 24, 2009

    Can anyone tell me how you put a small image in your Table View just left of each line of text? (Different picture for each line). Would i need to resize the images i have already or would the code do this for me?
  2. admanimal macrumors 68040

    Apr 22, 2005
    You might want to check out the imageView property of UITableViewCell.
  3. filjedi macrumors member

    Jun 7, 2009
    As long as your targeting OS 3.0, it's quite easy. Like the previous poster said, use the imageView property of UITableViewCell. If your targeting an earlier version (like OS 2.2.1), you can just subclass UITableViewCell & layout the cell in Interface Builder to get the look you want.

    In any case, it's better to resize the images to match the size of the imageView. Not sure about the exact size, but the height of a UITableViewCell is 44px. Hope this helps.

Share This Page