UITableViewCell Set Selected Image

后端 未结 5 1254
误落风尘
误落风尘 2021-02-07 08:26

trying to figure out how to set the selected image for for a tableViewCell.

The old way of writing this was cell.selectedImage but that has bee

5条回答
  •  失恋的感觉
    2021-02-07 08:52

    You can set selected backgroundView like below....

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

提交回复
热议问题