开发者

One background image must be displayed on the whole

I am new to iphone development.When i tried to displayed a background image for my table view ,image appears for every cells.I want display single image开发者_Python百科 thats fits the screen and not displayed in every cell.Please help me out.Thanks.


Make your table view a subview of a UIView (let's call it parentView). You can then make the table view's background clear to show the UIView positioned underneath. You then set that UIView to contain an image view:

self.tableView.backgroundColor = [UIColor clearColor];
[self.parentView addSubview:myImageView];
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜