how to show image on right hand side of table view for iphone
i can show image on left hand side of table view but why my right hand side is not working
CGRect frame;
frame= CGRectMake(310 ,10, 50, 50);
UIImageView * myIm开发者_运维知识库ageView = [[UIImageView alloc]init];
cell.myImageView.image = [UIImage imageNamed:@"bowl.png"];
myImageView.frame = frame;
[myImageView release];
Try this, it works for me:
UIImageView *image = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"yellow_dot.png"]];
cell.accessoryView = image;
Do this code in willDisplayCell
and it should work. Also remember the default cell already has an imageview, you can just move its frame.
精彩评论