diyora Posted August 19, 2008 Share Posted August 19, 2008 Hi, 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:@"asdf.png"]; Now i want to set text on image. Thank you.. Link to comment Share on other sites More sharing options...
alloutmacstoday Posted August 19, 2008 Share Posted August 19, 2008 If i were you, I would subclass uitableviewcell, and raw both rects in the contentview using cgrects. Link to comment Share on other sites More sharing options...
stroke Posted August 23, 2008 Share Posted August 23, 2008 Or just use a UILabel. Link to comment Share on other sites More sharing options...
alloutmacstoday Posted August 23, 2008 Share Posted August 23, 2008 I dunno if you actually read his post, because you cannot usually do that with tableview cells without subclassing it, and then adding the image and label to the content view Link to comment Share on other sites More sharing options...
stroke Posted August 23, 2008 Share Posted August 23, 2008 Well I assumed he would know that he needs to subclass it. You suggested some odd CGRect stuff, he could just subclass it and give it a UILabel. Link to comment Share on other sites More sharing options...
alloutmacstoday Posted August 23, 2008 Share Posted August 23, 2008 uiview.frame = a CGRect UILabel and UIImageView inherit UIView Link to comment Share on other sites More sharing options...
stroke Posted August 24, 2008 Share Posted August 24, 2008 I'm tired of arguing with you. All you said was to draw both rects in the contentview — you never said what the other rect was. Link to comment Share on other sites More sharing options...
Recommended Posts