开发者

iPhone: UIImage as background of UITableCell

开发者 https://www.devze.com 2023-01-13 10:21 出处:网络
What is the best way to place an image as the background of an UITableCell?I was thinking of using the cell.contentView property, but it won\'t compile.

What is the best way to place an image as the background of an UITableCell? I was thinking of using the cell.contentView property, but it won't compile.

Is there a pre开发者_StackOverflowferred method of doing this? And maybe an example?


make sure you are using UIImageView and then having its image property set to the UIImage you want. also, contentView is not the property you want, you want the UITableViewCells backgroundView


I generally use -[UIColor colorWithPatternImage: for this purpose.

0

精彩评论

暂无评论...
验证码 换一张
取 消