How to set text on image

Discussion in 'iOS Programming' started by diyora, Aug 19, 2008.

  1. diyora macrumors newbie

    Jul 21, 2008
    I am coding in cocoa touch.I am set table view and after that i set image in table view cell.For that i use cell.image = [UIImage imageNamed:mad:"asdf.png"];
    Now i want to set text on image.

    Thank you..
  2. grimjim macrumors member

    May 24, 2003
    The easiest way is probably to put the text in a UILabel, set its backgound to be clearColor and add it to the tableview cell as a subview. The SeismicXML sample app has some code that uses multiple labels as subviews of tableview cells.

Share This Page