iphone - How to set diff. image in cell in table -
How to set different icon images for each cell in the UItable view
IndexPath {static NSString * CellIdentifier = @ "cell"; UITableViewCell * cell = [tableview] dequeueReusableCellWithIdentifier: CellIdentifier]; If (cell == blue) {cell = [[[UITWebWeblog ALLOC] initWithStyle: UITableViewCellStyleDefault reuseIdentifier: cell identifier] autorelease]; } Cell.imageView.image = [someDataClass methodThatReturnsAnImage]; Cell.textLabel.text = [someDataClass methodThatReturnsAString]; Return cell; }
- (UITableViewCell *) Table View: (UITableView *) Table View CellForouaitIEAPPath: (NSINXAP *) div class = "post-text" itemprop = "text">
Comments
Post a Comment