Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

iLoveDeveloping

Suspended
Original poster
Sep 24, 2009
596
2,366
Ireland
Hey,

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?
 
Hey,

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?

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.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.