开发者

Set background of UITableview in interface builder?

开发者 https://www.devze.com 2022-12-30 14:03 出处:网络
In iPhone I need to set the background view of a UITableview. From 3.2 SDK I can in code use something like:

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

精彩评论

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