开发者

iPhone: UIImage as background of UITableCell

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜