开发者

Set background of UITableview in interface builder?

In iPhone I need to set the background view of a UITableview. From 3.2 SDK I can in code use something like:

[self.tableView setBackgroundView:[[UIImageView alloc] initWithImage:[UIImage imageNamed:@"mycustombackground.png"]]];

But how can I do the same in interface builder? It would be great if I could just set the background view directly in interface builder. But can't seem to find this property, where is it?

开发者_运维问答

Thanks!


Add a UIImageView behind it, put the image in that and set the tableview to transparent:

self.tableview.backgroundColor = [UIColor clearColor];
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜