changing cell background on click on cell in iphone

Posted by swap on Stack Overflow See other posts from Stack Overflow or by swap
Published on 2010-04-08T06:48:28Z Indexed on 2010/04/08 6:53 UTC
Read the original article Hit count: 389

Filed under:
|
|

How to change cell background image on click on cell in iphone????I have tried following but it is not working....

if (cell == nil) {

cell = [[[UITableViewCell alloc] initWithFrame:CGRectMake(0,0,320,50) reuseIdentifier:myid] autorelease];

cell.selectedBackgroundView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"myImage.png"]];

}

© Stack Overflow or respective owner

Related posts about iphone

Related posts about iphone-sdk